8000 Update __init__.py · pytorch/pytorch@4c476a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c476a0

Browse files
authored
Update __init__.py
1 parent f06e208 commit 4c476a0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

torch/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,11 @@ def _load_global_deps() -> None:
312312

313313
try:
314314
ctypes.CDLL(global_deps_lib_path, mode=ctypes.RTLD_GLOBAL)
315-
# Workaround slim-wheel CUDA-12.4+ dependency bug in libcusparse by preloading nvjitlink
316-
# In those versions of cuda cusparse depends on nvjitlink, but does not have rpath when
315+
# Workaround slim-wheel CUDA dependency bugs in cusparse and cudnn by preloading nvjitlink
316+
# and nvrtc. In CUDA-12.4+ cusparse depends on nvjitlink, but does not have rpath when
317317
# shipped as wheel, which results in OS picking wrong/older version of nvjitlink library
318-
# if `LD_LIBRARY_PATH` is defined
319-
# See https://github.com/pytorch/pytorch/issues/138460
320-
# Similar issue as above exist for cuda_nvrtc for reference
318+
# if `LD_LIBRARY_PATH` is defined, see https://github.com/pytorch/pytorch/issues/138460
319+
# Similar issue exist in cudnn that dynamically loads nvrtc, unaware of its relative path.
321320
# See https://github.com/pytorch/pytorch/issues/145580
322321
try:
323322
with open("/proc/self/maps") as f:

0 commit comments

Comments
 (0)
0