[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):
|
||||
ld_preload_list = os.environ.get("LD_PRELOAD", "")
|
||||
if name not in ld_preload_list:
|
||||
raise RuntimeError(
|
||||
f"{name} is not found in LD_PRELOAD. "
|
||||
"Please follow the section `set LD_PRELOAD` in "
|
||||
logger.warning(
|
||||
"%s is not found in LD_PRELOAD. "
|
||||
"For best performance, please follow the section "
|
||||
"`set LD_PRELOAD` in "
|
||||
"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"):
|
||||
|
||||
Reference in New Issue
Block a user