aboutsummaryrefslogtreecommitdiff
path: root/include/CudaLibrary.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/CudaLibrary.hpp')
-rw-r--r--include/CudaLibrary.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/CudaLibrary.hpp b/include/CudaLibrary.hpp
index d9514cb..fe99975 100644
--- a/include/CudaLibrary.hpp
+++ b/include/CudaLibrary.hpp
@@ -100,9 +100,9 @@ struct Cuda {
return true;
dlerror(); // clear
- void *lib = dlopen("libcuda.so", RTLD_LAZY);
+ void *lib = dlopen("libcuda.so.1", RTLD_LAZY);
if(!lib) {
- lib = dlopen("libcuda.so.1", RTLD_LAZY);
+ lib = dlopen("libcuda.so", RTLD_LAZY);
if(!lib) {
fprintf(stderr, "Error: failed to load libcuda.so/libcuda.so.1, error: %s\n", dlerror());
return false;