aboutsummaryrefslogtreecommitdiff
path: root/Tools/performance_tests/functions_perftest.py
diff options
context:
space:
mode:
authorGravatar mthevenet <mthevenet@lbl.gov> 2018-10-12 14:29:20 -0700
committerGravatar mthevenet <mthevenet@lbl.gov> 2018-10-12 14:29:20 -0700
commit0cfcdf169fa7e915b8225c9f3c6c4060f69f7ea5 (patch)
tree2c3b6c7aba056c4e8234a6c9d10adaad8297e52f /Tools/performance_tests/functions_perftest.py
parentc4dad23990366453bf9c336166d31d07edff2776 (diff)
downloadWarpX-0cfcdf169fa7e915b8225c9f3c6c4060f69f7ea5.tar.gz
WarpX-0cfcdf169fa7e915b8225c9f3c6c4060f69f7ea5.tar.zst
WarpX-0cfcdf169fa7e915b8225c9f3c6c4060f69f7ea5.zip
minor change
Diffstat (limited to 'Tools/performance_tests/functions_perftest.py')
-rw-r--r--Tools/performance_tests/functions_perftest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/performance_tests/functions_perftest.py b/Tools/performance_tests/functions_perftest.py
index 5fcb1cf81..427954ed5 100644
--- a/Tools/performance_tests/functions_perftest.py
+++ b/Tools/performance_tests/functions_perftest.py
@@ -29,15 +29,15 @@ def get_file_content(filename=None):
def run_batch_nnode(test_list, res_dir, bin_name, config_command, architecture='knl', Cname='knl', n_node=1, runtime_param_list=[]):
# Clean res_dir
if os.path.exists(res_dir):
- shutil.rmtree(res_dir)
+ shutil.rmtree(res_dir, ignore_errors=True)
os.makedirs(res_dir)
# Copy files to res_dir
cwd = os.environ['WARPX'] + '/Tools/performance_tests/'
bin_dir = cwd + 'Bin/'
shutil.copy(bin_dir + bin_name, res_dir)
os.chdir(res_dir)
- # Calculate simulation time. Take 10 min + 10 min / simulation
- job_time_min = 5. + len(test_list)*2.
+ # Calculate simulation time. Take 5 min + 2 min / simulation
+ job_time_min = 5. + len(test_list)*3.
job_time_str = str(int(job_time_min/60)) + ':' + str(int(job_time_min%60)) + ':00'
batch_string = ''
batch_string += '#!/bin/bash\n'