File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ SUBMISSION_NAME=""
1818RULESET=" "
1919FRAMEWORK=" "
2020ARRAY_RANGE=" "
21+ WORKLOADS=" "
2122
2223# --- Helper Functions ---
2324
@@ -85,6 +86,10 @@ parse_flags() {
8586 DRY_RUN=" $2 "
8687 shift 2
8788 ;;
89+ --workloads)
90+ WORKLOADS=" $2 "
91+ shift 2
92+ ;;
8893 * )
8994 echo " Unknown option $1 "
9095 exit 1
@@ -143,6 +148,11 @@ generate_config() {
143148 exp_prefix=" submissions_a100"
144149 fi
145150
151+ local workloads_flag=" "
152+ if [ -n " $WORKLOADS " ]; then
153+ workloads_flag=" --workloads=$WORKLOADS "
154+ fi
155+
146156 docker run \
147157 --rm \
148158 -v " $( pwd) " :/algorithmic-efficiency \
@@ -153,7 +163,8 @@ generate_config() {
153163 --framework=" $FRAMEWORK " \
154164 --tuning_ruleset=" $RULESET " \
155165 --submission_path=" $SUBMISSION_PATH /submission.py" \
156- --experiment_dir=" ${exp_prefix} /$SUBMISSION_NAME "
166+ --experiment_dir=" ${exp_prefix} /$SUBMISSION_NAME " \
167+ $workloads_flag
157168
158169 mv config.json " $SUBMISSION_NAME .json"
159170}
You can’t perform that action at this time.
0 commit comments