Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
386e5c47
Commit
386e5c47
authored
Aug 01, 2025
by
zhuwenwen
Browse files
update rocm.py
parent
e3cacb3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vllm/platforms/rocm.py
vllm/platforms/rocm.py
+6
-6
No files found.
vllm/platforms/rocm.py
View file @
386e5c47
...
@@ -75,12 +75,12 @@ _ROCM_DEVICE_ID_NAME_MAP: dict[str, str] = {
...
@@ -75,12 +75,12 @@ _ROCM_DEVICE_ID_NAME_MAP: dict[str, str] = {
}
}
# Prevent use of clashing `{CUDA/HIP}_VISIBLE_DEVICES``
# Prevent use of clashing `{CUDA/HIP}_VISIBLE_DEVICES``
if
"HIP_VISIBLE_DEVICES"
in
os
.
environ
:
#
if "HIP_VISIBLE_DEVICES" in os.environ:
val
=
os
.
environ
[
"HIP_VISIBLE_DEVICES"
]
#
val = os.environ["HIP_VISIBLE_DEVICES"]
if
cuda_val
:
=
os
.
environ
.
get
(
"CUDA_VISIBLE_DEVICES"
,
None
):
#
if cuda_val := os.environ.get("CUDA_VISIBLE_DEVICES", None):
assert
val
==
cuda_val
#
assert val == cuda_val
else
:
#
else:
os
.
environ
[
"CUDA_VISIBLE_DEVICES"
]
=
val
#
os.environ["CUDA_VISIBLE_DEVICES"] = val
# AMDSMI utils
# AMDSMI utils
# Note that NVML is not affected by `{CUDA/HIP}_VISIBLE_DEVICES`,
# Note that NVML is not affected by `{CUDA/HIP}_VISIBLE_DEVICES`,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment