[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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user