From eb42377f302250ce086435f40f60d389757eb385 Mon Sep 17 00:00:00 2001 From: Hannes Signer Date: Mon, 11 Sep 2023 11:10:27 +0200 Subject: [PATCH] change experiment files --- examples/profiling_openmp.cpp | 24 +++++++----- examples/profiling_speedup.cpp | 67 ++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 9 deletions(-) create mode 100644 examples/profiling_speedup.cpp diff --git a/examples/profiling_openmp.cpp b/examples/profiling_openmp.cpp index 1c83542..78c915b 100644 --- a/examples/profiling_openmp.cpp +++ b/examples/profiling_openmp.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -5,20 +6,24 @@ int main(int argc, char *argv[]) { - int n[4] = {100, 500, 1000, 2000}; - int threads[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; - int iterations[1] = {5}; - int repetition = 1; + int n[] = {2000}; + int threads[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; + int iterations[1] = {1}; + int repetition = 10; + + for(int l=0; l +#include +#include +#include +#include + +int main(int argc, char *argv[]) { + + int n[] = {2000}; + int threads[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; + int iterations[1] = {1}; + int repetition = 10; + + + for(int l=0; l(end - begin); + myfile << milliseconds.count() << endl; + } + } + cout << endl; + myfile << endl; + + } + myfile.close(); + } +} \ No newline at end of file