[Hardware][Powerpc] Fix VLLM_CPU_OMP_THREADS_BIND="auto" low CPU utilization for Power (#27734)

Signed-off-by: Akash Kaothalkar <akash.kaothalkar@ibm.com>
Co-authored-by: Akash Kaothalkar <akash.kaothalkar@ibm.com>
This commit is contained in:
Akash kaothalkar
2025-10-31 13:15:26 +05:30
committed by GitHub
parent b2e65cb4a7
commit 36960501d3

View File

@@ -316,7 +316,8 @@ class CpuPlatform(Platform):
if ( if (
platform.system() == "Linux" platform.system() == "Linux"
and Platform.get_cpu_architecture() == CpuArchEnum.ARM and Platform.get_cpu_architecture()
in (CpuArchEnum.ARM, CpuArchEnum.POWERPC)
and not ("libomp" in ld_preload_str or "libgomp" in ld_preload_str) and not ("libomp" in ld_preload_str or "libgomp" in ld_preload_str)
): ):
# We need to LD_PRELOAD PyTorch's libgomp, otherwise only # We need to LD_PRELOAD PyTorch's libgomp, otherwise only