aboutsummaryrefslogtreecommitdiff
path: root/Tools/performance_tests/run_automated.py
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-09-02 11:39:26 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-09-02 11:39:26 -0700
commitf828e420db0f0ef0182e5846e0df0c2c47ebe76a (patch)
tree94d3decb41273d064f3b64fef6e36769bc1658ef /Tools/performance_tests/run_automated.py
parentdaeebcf054e98b0e719d21c1df2b98238b1d481c (diff)
downloadWarpX-f828e420db0f0ef0182e5846e0df0c2c47ebe76a.tar.gz
WarpX-f828e420db0f0ef0182e5846e0df0c2c47ebe76a.tar.zst
WarpX-f828e420db0f0ef0182e5846e0df0c2c47ebe76a.zip
clean makefile for performance tests
Diffstat (limited to 'Tools/performance_tests/run_automated.py')
-rw-r--r--Tools/performance_tests/run_automated.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/Tools/performance_tests/run_automated.py b/Tools/performance_tests/run_automated.py
index dca038c6c..5184e1eef 100644
--- a/Tools/performance_tests/run_automated.py
+++ b/Tools/performance_tests/run_automated.py
@@ -194,12 +194,17 @@ if args.mode == 'run':
git_repo.pull()
git_repo = git.cmd.Git( warpx_dir )
git_repo.pull()
- with open(cwd + 'GNUmakefile_perftest') as makefile_handler:
- makefile_text = makefile_handler.read()
- makefile_text = re.sub('\nCOMP.*', '\nCOMP=%s' %compiler_name[args.compiler], makefile_text)
- with open(cwd + 'GNUmakefile_perftest', 'w') as makefile_handler:
- makefile_handler.write( makefile_text )
- os.system(config_command + " make -f GNUmakefile_perftest realclean ; " + " rm -r tmp_build_dir *.mod; make -j 8 -f GNUmakefile_perftest")
+
+ shutil.copyfile("../../GNUmakefile","./GNUmakefile")
+ os.system(config_command + " make realclean COMP=%s" %compiler_name[args.compiler] "; rm -r tmp_build_dir *.mod; make -j 16 COMP=%s" %compiler_name[args.compiler])
+
+ #with open(cwd + 'GNUmakefile_perftest') as makefile_handler:
+ # makefile_text = makefile_handler.read()
+ #makefile_text = re.sub('\nCOMP.*', '\nCOMP=%s' %compiler_name[args.compiler], makefile_text)
+ #with open(cwd + 'GNUmakefile_perftest', 'w') as makefile_handler:
+ # makefile_handler.write( makefile_text )
+ #os.system(config_command + " make -f GNUmakefile_perftest realclean ; " + " rm -r tmp_build_dir *.mod; make -j 8 -f GNUmakefile_perftest")
+
if os.path.exists( cwd + 'store_git_hashes.txt' ):
os.remove( cwd + 'store_git_hashes.txt' )
store_git_hash(repo_path=picsar_dir, filename=cwd + 'store_git_hashes.txt', name='picsar')