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
3322e264
Unverified
Commit
3322e264
authored
Mar 19, 2026
by
Li, Jiang
Committed by
GitHub
Mar 19, 2026
Browse files
[Bugfix] Avoid more OpenMP thread reallocation in CPU torch compile (#37538)
Signed-off-by:
jiang1.li
<
jiang1.li@intel.com
>
parent
765e4610
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/platforms/cpu.py
vllm/platforms/cpu.py
+3
-0
No files found.
vllm/platforms/cpu.py
View file @
3322e264
...
...
@@ -281,6 +281,9 @@ class CpuPlatform(Platform):
# Disable multi-stream for shared experts as no Stream on CPU
os
.
environ
[
"VLLM_DISABLE_SHARED_EXPERTS_STREAM"
]
=
"1"
# Avoid inductor generates num_thread() and breaks the thread binding
os
.
environ
[
"TORCHINDUCTOR_CPP_DYNAMIC_THREADS"
]
=
"1"
# Intel OpenMP setting
ld_preload_str
=
os
.
getenv
(
"LD_PRELOAD"
,
""
)
if
"libiomp5.so"
in
ld_preload_str
:
...
...
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