diff options
author | 2019-06-19 13:59:48 -0700 | |
---|---|---|
committer | 2019-06-19 13:59:48 -0700 | |
commit | a51731f01c5f7e0cd9f218ac3cad468ef181335c (patch) | |
tree | 5cf46c75a3ee0d5bb115903aa58ebb53b31bc8f9 /Tools/performance_tests/run_automated.py | |
parent | f2cf70c944d2e6c961fb570358ba21ce8cb78936 (diff) | |
parent | 2d781055684716ab44b04d4adcc6914e03d925b5 (diff) | |
download | WarpX-a51731f01c5f7e0cd9f218ac3cad468ef181335c.tar.gz WarpX-a51731f01c5f7e0cd9f218ac3cad468ef181335c.tar.zst WarpX-a51731f01c5f7e0cd9f218ac3cad468ef181335c.zip |
Merge pull request #183 from ECP-WarpX/update_perftest
[WIP] Update perftest
Diffstat (limited to 'Tools/performance_tests/run_automated.py')
-rw-r--r-- | Tools/performance_tests/run_automated.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Tools/performance_tests/run_automated.py b/Tools/performance_tests/run_automated.py index f154c1308..dca038c6c 100644 --- a/Tools/performance_tests/run_automated.py +++ b/Tools/performance_tests/run_automated.py @@ -1,9 +1,10 @@ #!/usr/common/software/python/2.7-anaconda-4.4/bin/python -import os, sys, shutil, datetime +import os, sys, shutil, datetime, git import argparse, re, time, copy import pandas as pd -from functions_perftest import * +from functions_perftest import store_git_hash, get_file_content, \ + run_batch_nnode, extract_dataframe # typical use: python run_automated.py --n_node_list='1,8,16,32' --automated # Assume warpx, picsar, amrex and perf_logs repos ar in the same directory and @@ -225,6 +226,7 @@ def process_analysis(): batch_string += '#SBATCH -o read_output.txt\n' batch_string += '#SBATCH --mail-type=end\n' batch_string += '#SBATCH --account=m2852\n' + batch_string += 'module load h5py-parallel\n' batch_string += 'python ' + __file__ + ' --compiler=' + \ args.compiler + ' --architecture=' + args.architecture + \ ' --mode=read' + \ @@ -303,7 +305,8 @@ for n_node in n_node_list: # Load file perf_database_file if exists, and # append with results from this scan if os.path.exists(perf_database_file): - df_base = pd.read_hdf(perf_database_file, 'all_data') + df_base = pd.read_hdf(perf_database_file, 'all_data', format='table') + # df_base = pd.read_hdf(perf_database_file, 'all_data') updated_df = df_base.append(df_newline, ignore_index=True) else: updated_df = df_newline |