Unverified Commit 565c1efa authored by Li, Jiang's avatar Li, Jiang Committed by GitHub
Browse files

[CI/Build][Bugfix] Fix CPU backend default threads num (#13077)

parent 2b25b7d2
......@@ -115,6 +115,9 @@ class CpuPlatform(Platform):
# 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
os.environ["TORCHINDUCTOR_COMPILE_THREADS"] = "1"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment