|
|
|
@ -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")
|
|
|
|
|