diff --git a/tests/performance/conf_conn_64.ini b/tests/performance/conf_conn_64.ini index 23fea9c..f3ce2c5 100644 --- a/tests/performance/conf_conn_64.ini +++ b/tests/performance/conf_conn_64.ini @@ -2,10 +2,10 @@ simDir=tests/performance/tmp_gen_output startJob=0 [Iterables] -p=[10,39,15] +p=[10,39,10] seeds=[5462,2] lc=[4] -connectivity=[1,2,3] +connectivity=[1] variances=[1] [Generation] diff --git a/tests/performance/connectivity.py b/tests/performance/connectivity.py index a7245a6..4f3ca8e 100644 --- a/tests/performance/connectivity.py +++ b/tests/performance/connectivity.py @@ -26,11 +26,9 @@ with Benchmarker() as bench: @bench(f"Connectivity 1 core with size {size}") def _(bm): global index_1 - print(f"Running generation for {GEN_CONFIG_FILES[index_1]}") - os.system("CONFIG_FILE_PATH="+ GEN_CONFIG_FILES[index_1] + " mpirun -oversubscribe -np 1 python3 mpirunner.py") - print(f"End of generation for {GEN_CONFIG_FILES[index_1]}") + os.system("CONFIG_FILE_PATH="+ GEN_CONFIG_FILES[index_1] + " mpirun -oversubscribe -np 1 python3 -m memory_profiler mpirunner.py") with bm: - os.system("CONFIG_FILE_PATH="+ CONN_CONFIG_FILES[index_1] + " mpirun -oversubscribe -np 1 python3 mpirunner.py") + os.system("CONFIG_FILE_PATH="+ CONN_CONFIG_FILES[index_1] + " mpirun -oversubscribe -np 1 python3 -m memory_profiler mpirunner.py") ## teardown os.system("rm -rf ./tests/performance/tmp_gen_output") @@ -39,11 +37,9 @@ with Benchmarker() as bench: @bench(f"Connectivity 8 core with size {size}") def _(bm): global index_8 - print(f"Running generation for {GEN_CONFIG_FILES[index_8]}") - os.system("CONFIG_FILE_PATH="+ GEN_CONFIG_FILES[index_8] + " mpirun -oversubscribe -np 8 python3 mpirunner.py") - print(f"End of generation for {GEN_CONFIG_FILES[index_8]}") + os.system("CONFIG_FILE_PATH="+ GEN_CONFIG_FILES[index_8] + " mpirun -oversubscribe -np 8 python3 -m memory_profiler mpirunner.py") with bm: - os.system("CONFIG_FILE_PATH="+ CONN_CONFIG_FILES[index_8] + " mpirun -oversubscribe -np 8 python3 mpirunner.py") + os.system("CONFIG_FILE_PATH="+ CONN_CONFIG_FILES[index_8] + " mpirun -oversubscribe -np 8 python3 -m memory_profiler mpirunner.py") ## teardown os.system("rm -rf ./tests/performance/tmp_gen_output")