[CPU][UX] Do not crash when tcmalloc/libiomp are not ldpreloaded (#37561)
Signed-off-by: Fadi Arafeh <fadi.arafeh@arm.com>
This commit is contained in:
@@ -57,11 +57,13 @@ class CPUWorker(Worker):
|
|||||||
def check_preloaded_libs(name: str):
|
def check_preloaded_libs(name: str):
|
||||||
ld_preload_list = os.environ.get("LD_PRELOAD", "")
|
ld_preload_list = os.environ.get("LD_PRELOAD", "")
|
||||||
if name not in ld_preload_list:
|
if name not in ld_preload_list:
|
||||||
raise RuntimeError(
|
logger.warning(
|
||||||
f"{name} is not found in LD_PRELOAD. "
|
"%s is not found in LD_PRELOAD. "
|
||||||
"Please follow the section `set LD_PRELOAD` in "
|
"For best performance, please follow the section "
|
||||||
|
"`set LD_PRELOAD` in "
|
||||||
"https://docs.vllm.ai/en/latest/getting_started/installation/cpu/ "
|
"https://docs.vllm.ai/en/latest/getting_started/installation/cpu/ "
|
||||||
"to setup required pre-loaded libraries."
|
"to setup required pre-loaded libraries.",
|
||||||
|
name,
|
||||||
)
|
)
|
||||||
|
|
||||||
if sys.platform.startswith("linux"):
|
if sys.platform.startswith("linux"):
|
||||||
|
|||||||
Reference in New Issue
Block a user