[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -316,7 +316,8 @@ class CpuPlatform(Platform):
if (
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)
):
# We need to LD_PRELOAD PyTorch's libgomp, otherwise only