diff options
author | 2019-11-01 12:57:23 -0400 | |
---|---|---|
committer | 2019-11-01 12:57:23 -0400 | |
commit | c9c57671b9cbb588c3af50125b430a435e603b7f (patch) | |
tree | 627bca2e74077b4a34bfc1732d361f7913592352 /Tools/performance_tests/functions_perftest.py | |
parent | 7cf08f6e336457b4a48874985712087faa984b64 (diff) | |
download | WarpX-c9c57671b9cbb588c3af50125b430a435e603b7f.tar.gz WarpX-c9c57671b9cbb588c3af50125b430a435e603b7f.tar.zst WarpX-c9c57671b9cbb588c3af50125b430a435e603b7f.zip |
make performance tests more modular, to run in custom mode
Diffstat (limited to 'Tools/performance_tests/functions_perftest.py')
-rw-r--r-- | Tools/performance_tests/functions_perftest.py | 3 |
1 files changed, 1 insertions, 2 deletions
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) |