File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
tools/AutoTuner/src/autotuner/utils Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,7 @@ if [ "$PLATFORM" == "asap7" ] && [ "$DESIGN_NAME" == "gcd" ]; then
2626fi
2727
2828echo " Running Autotuner plotting smoke test"
29- all_experiments=$( ls -d ./flow/logs/${PLATFORM} /${DESIGN_NAME} /* /)
30- if [ -z " $all_experiments " ]; then
31- echo " No experiments found for plotting"
32- exit 0
33- fi
29+ all_experiments=$( ls -d ./flow/logs/${PLATFORM} /${DESIGN_NAME} /smoke-test-tune* )
3430all_experiments=$( basename -a $all_experiments )
3531for expt in $all_experiments ; do
3632 python3 tools/AutoTuner/src/autotuner/utils/plot.py \
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def load_dir(dir: str) -> pd.DataFrame:
3434 progress_csvs = glob .glob (f"{ dir } /*/progress.csv" )
3535 if len (progress_csvs ) == 0 :
3636 print ("No progress.csv files found." )
37- sys .exit (0 )
37+ sys .exit (1 )
3838 progress_df = pd .concat ([pd .read_csv (f ) for f in progress_csvs ])
3939
4040 # Concatenate params.json & metrics.json file
@@ -64,7 +64,7 @@ def load_dir(dir: str) -> pd.DataFrame:
6464 print (
6565 "Unable to merge DFs due to missing trial_id in params.json (possibly due to failed trials.)"
6666 )
67- sys .exit (0 )
67+ sys .exit (1 )
6868
6969 # Print failed, if any
7070 if failed :
@@ -109,7 +109,7 @@ def preprocess(df: pd.DataFrame) -> pd.DataFrame:
109109 print (
110110 f"KeyError: { e } in the DataFrame. Dataframe does not contain necessary columns."
111111 )
112- sys .exit (0 )
112+ sys .exit (1 )
113113
114114
115115def plot (df : pd .DataFrame , key : str , dir : str ):
You can’t perform that action at this time.
0 commit comments