Skip to content

Commit 044d173

Browse files
committed
Open libcuda.so.1 instead of libcuda.so
1 parent ebbe4b5 commit 044d173

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cuda/_cuda/ccuda.pyx.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ cdef int cuPythonInit() nogil except -1:
427427
{{if 'Windows' == platform.system()}}
428428
path = 'nvcuda.dll'
429429
{{else}}
430-
path = 'libcuda.so'
430+
path = 'libcuda.so.1'
431431
{{endif}}
432432

433433
{{if 'Windows' == platform.system()}}
@@ -439,7 +439,7 @@ cdef int cuPythonInit() nogil except -1:
439439
{{else}}
440440
handle = dlfcn.dlopen(bytes(path, encoding='utf-8'), dlfcn.RTLD_NOW)
441441
if (handle == NULL):
442-
raise RuntimeError('Failed to dlopen libcuda.so')
442+
raise RuntimeError('Failed to dlopen ' + path)
443443
{{endif}}
444444

445445
# Get latest __cuGetProcAddress

0 commit comments

Comments
 (0)