From c9c57671b9cbb588c3af50125b430a435e603b7f Mon Sep 17 00:00:00 2001 From: Maxence Thevenet Date: Fri, 1 Nov 2019 12:57:23 -0400 Subject: make performance tests more modular, to run in custom mode --- Tools/performance_tests/functions_perftest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Tools/performance_tests/functions_perftest.py') diff --git a/Tools/performance_tests/functions_perftest.py b/Tools/performance_tests/functions_perftest.py index 213ddb77d..21236ed3b 100644 --- a/Tools/performance_tests/functions_perftest.py +++ b/Tools/performance_tests/functions_perftest.py @@ -93,13 +93,12 @@ def run_batch(run_name, res_dir, bin_name, config_command, architecture='knl',\ os.system(config_command + 'sbatch ' + batch_file + ' >> ' + cwd + 'log_jobids_tmp.txt') return 0 -def run_batch_nnode(test_list, res_dir, bin_name, config_command, batch_string, submit_job_command): +def run_batch_nnode(test_list, res_dir, cwd, bin_name, config_command, batch_string, submit_job_command): # Clean res_dir if os.path.exists(res_dir): shutil.rmtree(res_dir, ignore_errors=True) os.makedirs(res_dir) # Copy files to res_dir - cwd = os.environ['AUTOMATED_PERF_TESTS'] + '/warpx/Tools/performance_tests/' bin_dir = cwd + 'Bin/' shutil.copy(bin_dir + bin_name, res_dir) os.chdir(res_dir) -- cgit v1.2.3