From 58a3616872bc27ac4c45f82c59d8c0b8892bfc8f Mon Sep 17 00:00:00 2001 From: yy-fighting Date: Fri, 10 Jul 2026 04:07:14 +0000 Subject: [PATCH] sglang tp_dp_matrix: export DATASET_PATH for bash -c subshells export -f only exports the function definition, not the variables it references. DATASET_PATH was empty inside timeout bash -c subshells, causing docker run -v ::ro invalid spec even after the dynamic vol_args fix. Add explicit export after sourcing config.env. --- experiments/dsv4_h200_sglang_tp_dp_matrix/run_bench.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/experiments/dsv4_h200_sglang_tp_dp_matrix/run_bench.sh b/experiments/dsv4_h200_sglang_tp_dp_matrix/run_bench.sh index 3f3bb3f..619d25d 100755 --- a/experiments/dsv4_h200_sglang_tp_dp_matrix/run_bench.sh +++ b/experiments/dsv4_h200_sglang_tp_dp_matrix/run_bench.sh @@ -12,6 +12,9 @@ source "${SCRIPT_DIR}/../../scripts/common/platform.sh" # shellcheck source=/dev/null source "${SCRIPT_DIR}/config.env" +# Export variables used inside functions that are called via bash -c subshells. +export DATASET_PATH + RUN_ID="${RUN_ID:-$(date '+%Y%m%d-%H%M%S')}" RESULT_BASE="${SCRIPT_DIR}/results" MATRIX_FILE="${MATRIX_FILE:-${SCRIPT_DIR}/matrix.json}"