From 355f316d6c396bb3d9c228a6d29d9692e901724b Mon Sep 17 00:00:00 2001 From: "Jeremy (Jiaming) Chai" Date: Sun, 1 Nov 2020 18:37:53 -0500 Subject: [PATCH 1/8] v3.2 new ge latency --- Code/YOURCODEHERE.cpp | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Code/YOURCODEHERE.cpp b/Code/YOURCODEHERE.cpp index f72fb3b..d686af6 100755 --- a/Code/YOURCODEHERE.cpp +++ b/Code/YOURCODEHERE.cpp @@ -84,15 +84,14 @@ std::string generateCacheLatencyParams(string halfBackedConfig) { L2_lat_dm = log2(L2Size); //border detection + /* if(L1dSize<2 || L1dSize>64) return "0 0 0"; - if(L1iSize<2 || L1iSize>64) return "0 0 0"; - if(L2Size<32 || L2Size>1024) return "0 0 0"; - + */ if (token[4] ==1) { L1d_lat_dm +=1; @@ -138,7 +137,6 @@ std::string generateCacheLatencyParams(string halfBackedConfig) { cout< Date: Sun, 1 Nov 2020 18:48:45 -0500 Subject: [PATCH 2/8] v3.2.1 print sizes --- Code/YOURCODEHERE.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Code/YOURCODEHERE.cpp b/Code/YOURCODEHERE.cpp index d686af6..867c344 100755 --- a/Code/YOURCODEHERE.cpp +++ b/Code/YOURCODEHERE.cpp @@ -218,31 +218,31 @@ int validateConfiguration(std::string configuration) { // } else { // return 0; // } - // cout << width << " " << L1iblockSize << endl; + cout << width << " " << L1iblockSize << " " << L1dblockSize << endl; if(width <= L1dblockSize){ valid++; - // cout << "valid 1 "; + cout << "valid 1 "; } if(L1iblockSize == L1dblockSize){ valid++; - // cout << "valid 2 " ; + cout << "valid 2 " ; } if(L2blocksize >= 2 * L1iblockSize && L2blocksize <= 128){ valid++; - // cout << "valid 3 " ; + cout << "valid 3 " ; } if(L1iSize >= 2 && L1iSize <= 64){ valid++; - // cout << "valid 4 " ; + cout << "valid 4 " ; } if(L2Size >= 32 && L2Size <= 1024){ valid++; - // cout << "valid 5 " <= 2 * (L1iSize+L1dSize)){ valid++; - // cout << "valid 6 " < Date: Sun, 1 Nov 2020 18:51:23 -0500 Subject: [PATCH 3/8] v3.2.2 print all sizes --- Code/YOURCODEHERE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/YOURCODEHERE.cpp b/Code/YOURCODEHERE.cpp index 867c344..93be0e9 100755 --- a/Code/YOURCODEHERE.cpp +++ b/Code/YOURCODEHERE.cpp @@ -218,7 +218,7 @@ int validateConfiguration(std::string configuration) { // } else { // return 0; // } - cout << width << " " << L1iblockSize << " " << L1dblockSize << endl; + cout << width << " " << L1iblockSize << " " << L1dblockSize << " " < Date: Sun, 1 Nov 2020 18:55:24 -0500 Subject: [PATCH 4/8] v3.2.3 l1dsize valid check --- Code/YOURCODEHERE.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Code/YOURCODEHERE.cpp b/Code/YOURCODEHERE.cpp index 93be0e9..76f008f 100755 --- a/Code/YOURCODEHERE.cpp +++ b/Code/YOURCODEHERE.cpp @@ -245,9 +245,14 @@ int validateConfiguration(std::string configuration) { cout << "valid 6 " <= 2 && L1dSize <= 64){ + valid++; + cout << "valid 7 " ; + } + //valid return 1 invalid return 0 - if (valid != 6){ + if (valid != 7){ return 0; } From beb598f8df6128743438ed97ddf556aa8409f8c2 Mon Sep 17 00:00:00 2001 From: "Jeremy (Jiaming) Chai" Date: Sun, 1 Nov 2020 21:46:37 -0500 Subject: [PATCH 5/8] v3.2.4 remove couts --- Code/YOURCODEHERE.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Code/YOURCODEHERE.cpp b/Code/YOURCODEHERE.cpp index 76f008f..f40a398 100755 --- a/Code/YOURCODEHERE.cpp +++ b/Code/YOURCODEHERE.cpp @@ -169,13 +169,13 @@ std::string generateCacheLatencyParams(string halfBackedConfig) { // cout<= 2 * L1iblockSize && L2blocksize <= 128){ valid++; - cout << "valid 3 " ; + // cout << "valid 3 " ; } if(L1iSize >= 2 && L1iSize <= 64){ valid++; - cout << "valid 4 " ; + // cout << "valid 4 " ; } if(L2Size >= 32 && L2Size <= 1024){ valid++; - cout << "valid 5 " <= 2 * (L1iSize+L1dSize)){ valid++; - cout << "valid 6 " <= 2 && L1dSize <= 64){ valid++; - cout << "valid 7 " ; + // cout << "valid 7 " << endl; } //valid return 1 invalid return 0 @@ -425,7 +425,7 @@ std::string generateNextConfigurationProposal(std::string currentconfiguration, // cout << "first best set true" << endl; } } - cout << nextconfiguration < Date: Sun, 1 Nov 2020 21:48:35 -0500 Subject: [PATCH 6/8] v3.2.5 add sprintfs --- Code/YOURCODEHERE.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Code/YOURCODEHERE.cpp b/Code/YOURCODEHERE.cpp index f40a398..870220c 100755 --- a/Code/YOURCODEHERE.cpp +++ b/Code/YOURCODEHERE.cpp @@ -169,13 +169,13 @@ std::string generateCacheLatencyParams(string halfBackedConfig) { // cout< Date: Sun, 1 Nov 2020 21:49:31 -0500 Subject: [PATCH 7/8] v3.2.6 remove valid couts --- Code/YOURCODEHERE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/YOURCODEHERE.cpp b/Code/YOURCODEHERE.cpp index 870220c..d34ec62 100755 --- a/Code/YOURCODEHERE.cpp +++ b/Code/YOURCODEHERE.cpp @@ -218,7 +218,7 @@ int validateConfiguration(std::string configuration) { // } else { // return 0; // } - cout << width << " " << L1iblockSize << " " << L1dblockSize << " " < Date: Sun, 1 Nov 2020 23:32:51 -0500 Subject: [PATCH 8/8] v3.3 current = best --- Code/YOURCODEHERE.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Code/YOURCODEHERE.cpp b/Code/YOURCODEHERE.cpp index d34ec62..85e6f0c 100755 --- a/Code/YOURCODEHERE.cpp +++ b/Code/YOURCODEHERE.cpp @@ -422,6 +422,8 @@ std::string generateNextConfigurationProposal(std::string currentconfiguration, currentDimIndex = 0; currentlyExploringDim = EXPLORE[currentDimIndex]; firstBest = true; + nextconfiguration = bestConfig; + currentconfiguration = bestConfig; // cout << "first best set true" << endl; } }