8000 [CI] Fix a dashboard command line string formatting bug (#101325) · pytorch/pytorch@387b369 · GitHub
[go: up one dir, main page]

Skip to content

Commit 387b369

Browse files
desertfirepytorchmergebot
authored andcommitted
[CI] Fix a dashboard command line string formatting bug (#101325)
Pull Request resolved: #101325 Approved by: https://github.com/ngimel
1 parent 4414160 commit 387b369

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.ci/pytorch/test.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -324,35 +324,35 @@ test_perf_for_dashboard() {
324324

325325
for mode in "${modes[@]}"; do
326326
for target in "${targets[@]}"; do
327-
local target_flag="--${target}"
327+
local target_flag=("--${target}")
328328
if [[ "$target" == "performance" ]]; then
329-
target_flag+=" --cold-start-latency"
329+
target_flag+=( --cold-start-latency)
330330
fi
331331

332332
if [[ "$DASHBOARD_TAG" == *default-true* ]]; then
333333
python "benchmarks/dynamo/$suite.py" \
334-
"$target_flag" --"$mode" --"$dtype" --backend "$backend" --disable-cudagraphs "$@" \
334+
"${target_flag[@]}" --"$mode" --"$dtype" --backend "$backend" --disable-cudagraphs "$@" \
335335
--output "$TEST_REPORTS_DIR/${backend}_no_cudagraphs_${suite}_${dtype}_${mode}_cuda_${target}.csv"
336336
fi
337337
if [[ "$DASHBOARD_TAG" == *cudagraphs-true* ]]; then
338338
python "benchmarks/dynamo/$suite.py" \
339-
"$target_flag" --"$mode" --"$dtype" --backend "$backend" "$@" \
339+
"${target_flag[@]}" --"$mode" --"$dtype" --backend "$backend" "$@" \
340340
--output "$TEST_REPORTS_DIR/${backend}_with_cudagraphs_${suite}_${dtype}_${mode}_cuda_${target}.csv"
341341
fi
342342
if [[ "$DASHBOARD_TAG" == *dynamic-true* ]]; then
343343
python "benchmarks/dynamo/$suite.py" \
344-
"$target_flag" --"$mode" --"$dtype" --backend "$backend" --dynamic-shapes \
344+
"${target_flag[@]}" --"$mode" --"$dtype" --backend "$backend" --dynamic-shapes \
345345
--dynamic-batch-only --disable-cudagraphs "$@" \
346346
--output "$TEST_REPORTS_DIR/${backend}_dynamic_${suite}_${dtype}_${mode}_cuda_${target}.csv"
347347
fi
348348
if [[ "$DASHBOARD_TAG" == *cppwrapper-true* ]] && [[ "$mode" == "inference" ]]; then
349349
python "benchmarks/dynamo/$suite.py" \
350-
"$target_flag" --"$mode" --"$dtype" --backend "$backend" --disable-cudagraphs --cpp-wrapper "$@" \
350+
"${target_flag[@]}" --"$mode" --"$dtype" --backend "$backend" --disable-cudagraphs --cpp-wrapper "$@" \
351351
--output "$TEST_REPORTS_DIR/${backend}_cpp_wrapper_${suite}_${dtype}_${mode}_cuda_${target}.csv"
352352
fi
353353
if [[ "$DASHBOARD_TAG" == *maxautotune-true* ]]; then
354354
TORCHINDUCTOR_MAX_AUTOTUNE=1 python "benchmarks/dynamo/$suite.py" \
355-
"$target_flag" --"$mode" --"$dtype" --backend "$backend" "$@" \
355+
"${target_flag[@]}" --"$mode" --"$dtype" --backend "$backend" "$@" \
356356
--output "$TEST_REPORTS_DIR/${backend}_max_autotune_${suite}_${dtype}_${mode}_cuda_${target}.csv"
357357
fi
358358
done

0 commit comments

Comments
 (0)
0