[ROCm] Begin Deprecation Window for CUDA_VISIBLE_DEVICES on ROCm (#46636)

Signed-off-by: Micah Williamson <micah.williamson@amd.com>

Micah Williamson committed Jun 24, 2026 at 15:40 UTC d6696e2385ccf6b058885e7ea422c088d7112b15
1 file changed +8
vllm/platforms/rocm.py
+8
@@ -119,6 +119,14 @@ def _sync_hip_cuda_env_vars():
119 hip_val = os.environ.get("HIP_VISIBLE_DEVICES") or None
120 cuda_val = os.environ.get("CUDA_VISIBLE_DEVICES") or None
121
122 + if cuda_val is not None:
123 + logger.warning_once(
124 + "Using CUDA_VISIBLE_DEVICES on ROCm is deprecated and support "
125 + "will be removed in vLLM v0.26.0. Please use HIP_VISIBLE_DEVICES "
126 + "instead.",
127 + scope="process",
128 + )
129 +
130 if hip_val is not None and cuda_val is not None:
131 if hip_val != cuda_val:
132 raise ValueError(