mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-14 05:04:58 +08:00
[CI/Build][Bugfix] Fix CPU backend default threads num (#13077)
This commit is contained in:
parent
2b25b7d2e1
commit
565c1efa65
@ -115,6 +115,9 @@ class CpuPlatform(Platform):
|
|||||||
# Environment variables for CPU executor
|
# Environment variables for CPU executor
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Set default threads num for OpenMP parallel
|
||||||
|
os.environ["OMP_NUM_THREADS"] = str(torch.get_num_threads())
|
||||||
|
|
||||||
# Disable torch async compiling which won't work with daemonic processes
|
# Disable torch async compiling which won't work with daemonic processes
|
||||||
os.environ["TORCHINDUCTOR_COMPILE_THREADS"] = "1"
|
os.environ["TORCHINDUCTOR_COMPILE_THREADS"] = "1"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user