From 532f4c88e9fcdee9a3168efc8da7168252384c61 Mon Sep 17 00:00:00 2001 From: Rafal Rudnicki Date: Fri, 12 Sep 2025 19:50:06 +0200 Subject: [PATCH] load libcuda.so.1 instead of libcuda.so on linux --- src/provider/provider_cuda.c | 2 +- test/providers/cuda_helpers.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/provider/provider_cuda.c b/src/provider/provider_cuda.c index 983be6b55a..953876fc12 100644 --- a/src/provider/provider_cuda.c +++ b/src/provider/provider_cuda.c @@ -149,7 +149,7 @@ static void init_cu_global_state(void) { #ifdef _WIN32 const char *lib_name = "nvcuda.dll"; #else - const char *lib_name = "libcuda.so"; + const char *lib_name = "libcuda.so.1"; #endif // The CUDA shared library should be already loaded by the user // of the CUDA provider. UMF just want to reuse it diff --git a/test/providers/cuda_helpers.cpp b/test/providers/cuda_helpers.cpp index 3e81c184ff..4678ea4acd 100644 --- a/test/providers/cuda_helpers.cpp +++ b/test/providers/cuda_helpers.cpp @@ -110,7 +110,7 @@ int InitCUDAOps() { #ifdef _WIN32 const char *lib_name = "nvcuda.dll"; #else - const char *lib_name = "libcuda.so"; + const char *lib_name = "libcuda.so.1"; #endif // CUDA symbols #if OPEN_CU_LIBRARY_GLOBAL