Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
227dd87c
Commit
227dd87c
authored
Jan 09, 2026
by
Your Name
Browse files
[Bugfix] Fixing trying to import non-existent symbols from libnccl.so
parent
b4bb5ea6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
17 deletions
+36
-17
vllm/distributed/device_communicators/pynccl_wrapper.py
vllm/distributed/device_communicators/pynccl_wrapper.py
+36
-17
No files found.
vllm/distributed/device_communicators/pynccl_wrapper.py
View file @
227dd87c
...
...
@@ -30,7 +30,9 @@ from typing import Any, Optional
import
torch
from
torch.distributed
import
ReduceOp
from
vllm
import
envs
from
vllm.logger
import
init_logger
from
vllm.platforms
import
current_platform
from
vllm.utils
import
find_nccl_library
logger
=
init_logger
(
__name__
)
...
...
@@ -226,21 +228,21 @@ class NCCLLibrary:
# ncclResult_t ncclCommWindowRegister(
# ncclComm_t comm, void* buff, size_t size,
# ncclWindow_t* win, int winFlags);
#
Function(
#
"ncclCommWindowRegister",
#
ncclResult_t,
#
[
#
ncclComm_t,
#
buffer_type,
#
ctypes.c_size_t,
#
ctypes.POINTER(ncclWindow_t),
#
ctypes.c_int,
#
],
#
),
Function
(
"ncclCommWindowRegister"
,
ncclResult_t
,
[
ncclComm_t
,
buffer_type
,
ctypes
.
c_size_t
,
ctypes
.
POINTER
(
ncclWindow_t
),
ctypes
.
c_int
,
],
),
# ncclResult_t ncclCommWindowDeregister(
# ncclComm_t comm, ncclWindow_t win);
#
Function("ncclCommWindowDeregister", ncclResult_t,
#
[ncclComm_t, ncclWindow_t]),
Function
(
"ncclCommWindowDeregister"
,
ncclResult_t
,
[
ncclComm_t
,
ncclWindow_t
]),
]
# class attribute to store the mapping from the path to the library
...
...
@@ -275,10 +277,27 @@ class NCCLLibrary:
if
so_file
not
in
NCCLLibrary
.
path_to_dict_mapping
:
_funcs
:
dict
[
str
,
Any
]
=
{}
for
func
in
NCCLLibrary
.
exported_functions
:
f
=
getattr
(
self
.
lib
,
func
.
name
)
f
.
restype
=
func
.
restype
f
.
argtypes
=
func
.
argtypes
_funcs
[
func
.
name
]
=
f
try
:
f
=
getattr
(
self
.
lib
,
func
.
name
)
f
.
restype
=
func
.
restype
f
.
argtypes
=
func
.
argtypes
_funcs
[
func
.
name
]
=
f
except
AttributeError
:
if
func
.
name
in
[
"ncclCommWindowRegister"
,
"ncclCommWindowDeregister"
]:
if
envs
.
VLLM_USE_NCCL_SYMM_MEM
:
logger
.
warning_once
(
"The symbol %s is not found in the NCCL "
"library %s. To enable VLLM_USE_NCCL_SYMM_MEM "
" please update your NCCL version to >= "
"2.27.03."
,
func
.
name
,
so_file
)
if
current_platform
.
is_rocm
():
# Having an exception here on ROCm platform is
# not allowed during graph capturing
continue
raise
NCCLLibrary
.
path_to_dict_mapping
[
so_file
]
=
_funcs
self
.
_funcs
=
NCCLLibrary
.
path_to_dict_mapping
[
so_file
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment