diff --git a/scripts/gpu_tpu/switch_gpu_mode_direct.sh b/scripts/gpu_tpu/switch_gpu_mode_direct.sh index 2b03103a..acef6cff 100644 --- a/scripts/gpu_tpu/switch_gpu_mode_direct.sh +++ b/scripts/gpu_tpu/switch_gpu_mode_direct.sh @@ -906,8 +906,21 @@ main() { : >"$LOG_FILE" : >"$screen_capture" + # Debug: Show received environment variables + echo "[DEBUG] Environment variables received:" + echo "[DEBUG] GPU_SLOT='$GPU_SLOT'" + echo "[DEBUG] TARGET_MODE='$TARGET_MODE'" + echo "[DEBUG] EXECUTION_MODE='$EXECUTION_MODE'" + echo "" + parse_arguments "$@" + # Debug: Show parsed parameters + echo "[DEBUG] After parsing:" + echo "[DEBUG] PARAM_GPU_SLOT='$PARAM_GPU_SLOT'" + echo "[DEBUG] PARAM_TARGET_MODE='$PARAM_TARGET_MODE'" + echo "" + # Validate required parameters if [[ -z "$PARAM_GPU_SLOT" ]]; then msg_error "$(translate 'Missing required parameter'): --gpu-slot"