[Bugfix] [Hotfix] fix nccl library name (#3661)
This commit is contained in:
parent
82c540bebf
commit
d18f4e73f3
@ -39,9 +39,9 @@ if so_file:
|
|||||||
f"Loading nccl from environment variable VLLM_NCCL_SO_PATH={so_file}")
|
f"Loading nccl from environment variable VLLM_NCCL_SO_PATH={so_file}")
|
||||||
else:
|
else:
|
||||||
if torch.version.cuda is not None:
|
if torch.version.cuda is not None:
|
||||||
so_file = "libnccl.so"
|
so_file = "libnccl.so.2"
|
||||||
elif torch.version.hip is not None:
|
elif torch.version.hip is not None:
|
||||||
so_file = "librccl.so"
|
so_file = "librccl.so.2"
|
||||||
else:
|
else:
|
||||||
raise ValueError("NCCL only supports CUDA and ROCm backends.")
|
raise ValueError("NCCL only supports CUDA and ROCm backends.")
|
||||||
logger.debug(f"Loading nccl from library {so_file}")
|
logger.debug(f"Loading nccl from library {so_file}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user