aboutsummaryrefslogtreecommitdiff
path: root/Tools/performance_tests/functions_perftest.py
diff options
context:
space:
mode:
authorGravatar Maxence Thevenet <mthevenet@lbl.gov> 2019-09-02 19:19:12 -0400
committerGravatar Maxence Thevenet <mthevenet@lbl.gov> 2019-09-02 19:19:12 -0400
commita4624a825bcb2e0461a647c97784705025ef88b7 (patch)
tree2d5b76a4d36cf029340d99826fdbe9cdc7a3fe8b /Tools/performance_tests/functions_perftest.py
parent1f530a98ac781c2754aa508a04f4548a53532eb9 (diff)
downloadWarpX-a4624a825bcb2e0461a647c97784705025ef88b7.tar.gz
WarpX-a4624a825bcb2e0461a647c97784705025ef88b7.tar.zst
WarpX-a4624a825bcb2e0461a647c97784705025ef88b7.zip
perf tests run properly on summit
Diffstat (limited to 'Tools/performance_tests/functions_perftest.py')
-rw-r--r--Tools/performance_tests/functions_perftest.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Tools/performance_tests/functions_perftest.py b/Tools/performance_tests/functions_perftest.py
index b8066984d..1ca034894 100644
--- a/Tools/performance_tests/functions_perftest.py
+++ b/Tools/performance_tests/functions_perftest.py
@@ -87,14 +87,13 @@ def run_batch_nnode(test_list, res_dir, bin_name, config_command, machine, archi
os.chdir(res_dir)
# Calculate simulation time. Take 5 min + 2 min / simulation
job_time_min = time_min(len(test_list))
- job_time_str = str(int(job_time_min/60)) + ':' + str(int(job_time_min%60)) + ':00'
- batch_string = get_batch_string(test_list, job_time_str, Cname, n_node)
+ batch_string = get_batch_string(test_list, job_time_min, Cname, n_node)
for count, current_test in enumerate(test_list):
shutil.copy(cwd + current_test.input_file, res_dir)
run_string = get_run_string(current_test, architecture, n_node, count, bin_name, runtime_param_list)
batch_string += run_string
- batch_string += 'rm -rf plotfiles ; rm -rf lab_frame_data\n'
+ batch_string += 'rm -rf plotfiles lab_frame_data diags\n'
batch_file = 'batch_script.sh'
f_exe = open(batch_file,'w')
f_exe.write(batch_string)