Skip to content

Commit 532f4c8

Browse files
committed
load libcuda.so.1 instead of libcuda.so on linux
1 parent 7cf1e78 commit 532f4c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/provider/provider_cuda.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static void init_cu_global_state(void) {
149149
#ifdef _WIN32
150150
const char *lib_name = "nvcuda.dll";
151151
#else
152-
const char *lib_name = "libcuda.so";
152+
const char *lib_name = "libcuda.so.1";
153153
#endif
154154
// The CUDA shared library should be already loaded by the user
155155
// of the CUDA provider. UMF just want to reuse it

test/providers/cuda_helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ int InitCUDAOps() {
110110
#ifdef _WIN32
111111
const char *lib_name = "nvcuda.dll";
112112
#else
113-
const char *lib_name = "libcuda.so";
113+
const char *lib_name = "libcuda.so.1";
114114
#endif
115115
// CUDA symbols
116116
#if OPEN_CU_LIBRARY_GLOBAL

0 commit comments

Comments
 (0)