@@ -324,35 +324,35 @@ test_perf_for_dashboard() {
324
324
325
325
for mode in " ${modes[@]} " ; do
326
326
for target in " ${targets[@]} " ; do
327
- local target_flag=" --${target} "
327
+ local target_flag=( " --${target} " )
328
328
if [[ " $target " == " performance" ]]; then
329
- target_flag+=" --cold-start-latency"
329
+ target_flag+=( --cold-start-latency)
330
330
fi
331
331
332
332
if [[ " $DASHBOARD_TAG " == * default-true* ]]; then
333
333
python " benchmarks/dynamo/$suite .py" \
334
- " $target_flag " --" $mode " --" $dtype " --backend " $backend " --disable-cudagraphs " $@ " \
334
+ " ${ target_flag[@]} " --" $mode " --" $dtype " --backend " $backend " --disable-cudagraphs " $@ " \
335
335
--output " $TEST_REPORTS_DIR /${backend} _no_cudagraphs_${suite} _${dtype} _${mode} _cuda_${target} .csv"
336
336
fi
337
337
if [[ " $DASHBOARD_TAG " == * cudagraphs-true* ]]; then
338
338
python " benchmarks/dynamo/$suite .py" \
339
- " $target_flag " --" $mode " --" $dtype " --backend " $backend " " $@ " \
339
+ " ${ target_flag[@]} " --" $mode " --" $dtype " --backend " $backend " " $@ " \
340
340
--output " $TEST_REPORTS_DIR /${backend} _with_cudagraphs_${suite} _${dtype} _${mode} _cuda_${target} .csv"
341
341
fi
342
342
if [[ " $DASHBOARD_TAG " == * dynamic-true* ]]; then
343
343
python " benchmarks/dynamo/$suite .py" \
344
- " $target_flag " --" $mode " --" $dtype " --backend " $backend " --dynamic-shapes \
344
+ " ${ target_flag[@]} " --" $mode " --" $dtype " --backend " $backend " --dynamic-shapes \
345
345
--dynamic-batch-only --disable-cudagraphs " $@ " \
346
346
--output " $TEST_REPORTS_DIR /${backend} _dynamic_${suite} _${dtype} _${mode} _cuda_${target} .csv"
347
347
fi
348
348
if [[ " $DASHBOARD_TAG " == * cppwrapper-true* ]] && [[ " $mode " == " inference" ]]; then
349
349
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 " $@ " \
351
351
--output " $TEST_REPORTS_DIR /${backend} _cpp_wrapper_${suite} _${dtype} _${mode} _cuda_${target} .csv"
352
352
fi
353
353
if [[ " $DASHBOARD_TAG " == * maxautotune-true* ]]; then
354
354
TORCHINDUCTOR_MAX_AUTOTUNE=1 python " benchmarks/dynamo/$suite .py" \
355
- " $target_flag " --" $mode " --" $dtype " --backend " $backend " " $@ " \
355
+ " ${ target_flag[@]} " --" $mode " --" $dtype " --backend " $backend " " $@ " \
356
356
--output " $TEST_REPORTS_DIR /${backend} _max_autotune_${suite} _${dtype} _${mode} _cuda_${target} .csv"
357
357
fi
358
358
done
0 commit comments