From 086ba9e577af90650628895142e6711ca64593d1 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 9 Apr 2026 20:20:46 +0200 Subject: [PATCH] Update switch_gpu_mode_direct.sh --- scripts/gpu_tpu/switch_gpu_mode_direct.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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"