diff options
author | 2019-09-02 11:39:26 -0700 | |
---|---|---|
committer | 2019-09-02 11:39:26 -0700 | |
commit | f828e420db0f0ef0182e5846e0df0c2c47ebe76a (patch) | |
tree | 94d3decb41273d064f3b64fef6e36769bc1658ef /Tools/performance_tests/run_automated.py | |
parent | daeebcf054e98b0e719d21c1df2b98238b1d481c (diff) | |
download | WarpX-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.py | 17 |
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') |