From 6ce040376bf576fd99d4df2282eb5b1508fbf5fb Mon Sep 17 00:00:00 2001 From: Patrick Diehl Date: Mon, 9 Jan 2023 13:22:43 +0100 Subject: [PATCH 1/2] Clean script --- benchmark.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/benchmark.sh b/benchmark.sh index c6c88f1..f93c490 100755 --- a/benchmark.sh +++ b/benchmark.sh @@ -4,20 +4,20 @@ len=100000000 path=$(pwd) # Taylor HPX parallel algorithms -#for i in {64..1} -#do -# ${path}/build/src/taylor_future ${len} 0.5 $i >> $1_taylor_future.csv -#done +for i in {64..1} +do + ${path}/build/src/taylor_future ${len} 0.5 $i >> $1_taylor_future.csv +done -#for i in {64..1} -#do -# srun ${path}/build/src/taylor_future_hpx ${len} 0.5 $i --hpx:threads=$i >> $1_taylor_future_hpx.csv -#done +for i in {64..1} +do + srun ${path}/build/src/taylor_future_hpx ${len} 0.5 $i --hpx:threads=$i >> $1_taylor_future_hpx.csv +done -#for i in {64..1} -#do -# srun ${path}/build/src/taylor_par_hpx ${len} 0.5 --hpx:threads=$i >> $1_taylor_par_hpx.csv -#done +for i in {64..1} +do + srun ${path}/build/src/taylor_par_hpx ${len} 0.5 --hpx:threads=$i >> $1_taylor_par_hpx.csv +done for i in {42..1} do From 818362ebe5bdadd75d5e5bfbbf5b0a827a48d938 Mon Sep 17 00:00:00 2001 From: Patrick Diehl Date: Mon, 9 Jan 2023 13:23:15 +0100 Subject: [PATCH 2/2] Format --- src/taylor_future_coroutine_hpx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/taylor_future_coroutine_hpx.cpp b/src/taylor_future_coroutine_hpx.cpp index cb4df45..391fe51 100644 --- a/src/taylor_future_coroutine_hpx.cpp +++ b/src/taylor_future_coroutine_hpx.cpp @@ -56,7 +56,7 @@ int main(int args, char** argv) { int n = std::stoi(argv[1]); double x = std::stod(argv[2]); size_t amount = std::stoi(argv[3]); - + auto start = std::chrono::high_resolution_clock::now(); double result = run(n, amount, x).get();