Skip to content

Commit

Permalink
Fix string decomposition for WSL library load
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhurba01 committed Feb 21, 2022
1 parent 746b773 commit 15935e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cuda/_cuda/loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ static const char* sysrootName = NULL;
#include <unistd.h>
#define _getAddr dlsym
#define _Handle void*
static const size_t libcudaNameLinux_length = (sizeof("\\libcuda.so.1.1") - 1);
static const char* libcudaNameLinux = "\\libcuda.so.1.1";
static const size_t libcudaNameLinux_length = (sizeof("/libcuda.so.1.1") - 1);
static const char* libcudaNameLinux = "/libcuda.so.1.1";
#endif
static size_t libcudaName_length = 0;
static const char* libcudaName = NULL;
Expand Down

0 comments on commit 15935e5

Please sign in to comment.