|
@ -111,11 +111,17 @@ int main(int argc, char** argv) { |
|
|
|
|
|
|
|
|
std::ofstream out_file; |
|
|
std::ofstream out_file; |
|
|
|
|
|
|
|
|
out_file.open("../results/max_" |
|
|
|
|
|
|
|
|
const std::string ofname = std::string("results/max_") + |
|
|
"q-" + (std::string)(simple_query == true ? "simple" : "complex") + |
|
|
"q-" + (std::string)(simple_query == true ? "simple" : "complex") + |
|
|
"_bm-" + (std::string) BARRIER_MODE + |
|
|
"_bm-" + (std::string) BARRIER_MODE + |
|
|
"_bl-" + (std::string)(BUFFER_LIMIT == 1 ? "limited" : "unlimited") + |
|
|
"_bl-" + (std::string)(BUFFER_LIMIT == 1 ? "limited" : "unlimited") + |
|
|
"_tc-" + std::to_string(thread_count) + "1MiB-2MiB.csv", std::ios::app); |
|
|
|
|
|
|
|
|
"_tc-" + std::to_string(thread_count) + "1MiB-2MiB.csv"; |
|
|
|
|
|
|
|
|
|
|
|
out_file.open(ofname); |
|
|
|
|
|
|
|
|
|
|
|
if (out_file.bad()) { |
|
|
|
|
|
std::cerr << "Failed to open Output File '" << ofname << "'" << std::endl; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// set benchmark parameter
|
|
|
// set benchmark parameter
|
|
|
Linear_Int_Range<uint32_t, 0, 30, 1> run("run"); |
|
|
Linear_Int_Range<uint32_t, 0, 30, 1> run("run"); |
|
@ -145,13 +151,19 @@ int main(int argc, char** argv) { |
|
|
fill_mt<base_t>(data_a, workload_b, 0, 100, 42); |
|
|
fill_mt<base_t>(data_a, workload_b, 0, 100, 42); |
|
|
fill_mt<base_t>(data_b, workload_b, 0, 100, 420); |
|
|
fill_mt<base_t>(data_b, workload_b, 0, 100, 420); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::ofstream check_file; |
|
|
|
|
|
check_file.open("../results/max_" |
|
|
|
|
|
|
|
|
const std::string cfname = std::string("results/max_") + |
|
|
"q-" + (std::string)(simple_query == true ? "simple" : "complex") + |
|
|
"q-" + (std::string)(simple_query == true ? "simple" : "complex") + |
|
|
"_bm-" + (std::string) BARRIER_MODE + |
|
|
"_bm-" + (std::string) BARRIER_MODE + |
|
|
"_bl-" + (std::string)(BUFFER_LIMIT == 1 ? "limited" : "unlimited") + |
|
|
"_bl-" + (std::string)(BUFFER_LIMIT == 1 ? "limited" : "unlimited") + |
|
|
"_tc-" + std::to_string(thread_count) + ".checksum"); |
|
|
|
|
|
|
|
|
"_tc-" + std::to_string(thread_count) + ".checksum"; |
|
|
|
|
|
|
|
|
|
|
|
std::ofstream check_file; |
|
|
|
|
|
check_file.open(cfname); |
|
|
|
|
|
|
|
|
|
|
|
if (check_file.bad()) { |
|
|
|
|
|
std::cerr << "Failed to open Checksum File '" << cfname << "'" << std::endl; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if constexpr (QUERY == 1) { |
|
|
if constexpr (QUERY == 1) { |
|
|
//calculate simple checksum if QUERY == 1 -> simple query is applied
|
|
|
//calculate simple checksum if QUERY == 1 -> simple query is applied
|
|
|
check_file << sum_check(compare_value_a, data_a, data_b, workload_b); |
|
|
check_file << sum_check(compare_value_a, data_a, data_b, workload_b); |
|
|