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
6951fcd4
Unverified
Commit
6951fcd4
authored
Mar 20, 2026
by
Huanxing
Committed by
GitHub
Mar 20, 2026
Browse files
[XPU] Automatically detect target platform as XPU in build. (#37634)
Signed-off-by:
huanxing
<
huanxing.shen@intel.com
>
parent
39474513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
setup.py
setup.py
+3
-0
No files found.
setup.py
View file @
6951fcd4
...
...
@@ -54,6 +54,9 @@ elif sys.platform.startswith("linux") and os.getenv("VLLM_TARGET_DEVICE") is Non
if
torch
.
version
.
hip
is
not
None
:
VLLM_TARGET_DEVICE
=
"rocm"
logger
.
info
(
"Auto-detected ROCm"
)
elif
torch
.
version
.
xpu
is
not
None
:
VLLM_TARGET_DEVICE
=
"xpu"
logger
.
info
(
"Auto-detected XPU"
)
elif
torch
.
version
.
cuda
is
not
None
:
VLLM_TARGET_DEVICE
=
"cuda"
logger
.
info
(
"Auto-detected CUDA"
)
...
...
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