Skip to content

Commit 15935e5

Browse files
committed
Fix string decomposition for WSL library load
1 parent 746b773 commit 15935e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cuda/_cuda/loader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ static const char* sysrootName = NULL;
3232
#include <unistd.h>
3333
#define _getAddr dlsym
3434
#define _Handle void*
35-
static const size_t libcudaNameLinux_length = (sizeof("\\libcuda.so.1.1") - 1);
36-
static const char* libcudaNameLinux = "\\libcuda.so.1.1";
35+
static const size_t libcudaNameLinux_length = (sizeof("/libcuda.so.1.1") - 1);
36+
static const char* libcudaNameLinux = "/libcuda.so.1.1";
3737
#endif
3838
static size_t libcudaName_length = 0;
3939
static const char* libcudaName = NULL;

0 commit comments

Comments
 (0)