Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcuda.so.1 is not a symbolic link #5548

Open
sirredbeard opened this issue Jul 6, 2020 · 60 comments
Open

libcuda.so.1 is not a symbolic link #5548

sirredbeard opened this issue Jul 6, 2020 · 60 comments
Labels

Comments

@sirredbeard
Copy link
Contributor

This is cross-post of Ubuntu bug 1886532 which is pending investigation.

On Windows 10 build 20161 WSL2 running sudo apt upgrade results in warning:

"libcuda.so.1 is not a symbolic link"

It appears to be a result of a postinst hook in libc-bin.

Annotation 2020-07-06 115104

https://bugs.launchpad.net/ubuntuwsl/+bug/1886532

@therealkenc
Copy link
Collaborator

Yeah, copies not symlinks.

image

@aricursion
Copy link

Is there a solution for this? My /usr/lib/wsl/lib looks exactly like this. Where do I need symlinks and from where to where?

@therealkenc
Copy link
Collaborator

It's in %SYSTEMROOT%\System32\lxss\lib. It might be possible to make it a symlink in that folder, though I haven't tried and mucking your System32 is not recommended for lots of good reasons. You could also probably make the warning go away by mount binding a symlink over the file on the WSL side. Haven't tried that either.

Thus far the warning hasn't proved blocking in any way. It isn't even that clear (to me) why ldconfig feels inclined to point it out, because there isn't anything technically "wrong" with the file not being a symlink, except for violating a convention. Absent some heretofore unstated blocking use-case, the smart play ("solution") is to ignore the warning.

@aricursion
Copy link

What would cause problems with symlinking from system32. Like I know generally altering system32 is bad, but would symlinks cause problems?

@wanfuse123
Copy link

Directory of C:\Windows\System32\lxss\lib

09/18/2020 03:53 PM

.
08/30/2020 09:51 AM 124,664 libcuda.so
09/12/2020 08:44 AM 832,936 libd3d12.so
09/12/2020 08:44 AM 5,073,944 libd3d12core.so
09/12/2020 08:44 AM 25,069,816 libdirectml.so
09/12/2020 08:44 AM 878,768 libdxcore.so
08/30/2020 09:51 AM 40,496,936 libnvwgf2umx.so
6 File(s) 72,477,064 bytes
1 Dir(s) 643,723,309,056 bytes free

C:\Windows\System32\lxss\lib>mklink libcuda.so.1 libcuda.so
symbolic link created for libcuda.so.1 <<===>> libcuda.so

@wanfuse123
Copy link

simlynk generates new error

sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
Failed to initialize NVML: Unknown Error

@wanfuse123
Copy link

docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -privileged -gpu -benchmark
Run "nbody -benchmark [-numbodies=]" to measure performance.
-fullscreen (run n-body simulation in fullscreen mode)
-fp64 (use double precision floating point values for simulation)
-hostmem (stores simulation data in host memory)
-benchmark (run benchmark to measure performance)
-numbodies= (number of bodies (>= 1) to run in simulation)
-device= (where d=0,1,2.... for the CUDA device to use)
-numdevices= (where i=(number of CUDA devices > 0) to use for simulation)
-compare (compares simulation results running once on the default GPU and once on the CPU)
-cpu (run n-body simulation on the CPU)
-tipsy=<file.bin> (load a tipsy model file for simulation)

NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.

Error: only 0 Devices available, 1 requested. Exiting.

NOTE: the -privileged switch changes the error from above

@PeerXu
Copy link

PeerXu commented Oct 9, 2020

$ sudo docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -privileged -gpu -benchmark
CUDA error at bodysystemcuda_impl.h:159 code=46(cudaErrorDevicesUnavailable) "cudaEventCreate(&m_deviceData[0].event)" 
Run "nbody -benchmark [-numbodies=<numBodies>]" to measure performance.
	-fullscreen       (run n-body simulation in fullscreen mode)
	-fp64             (use double precision floating point values for simulation)
	-hostmem          (stores simulation data in host memory)
	-benchmark        (run benchmark to measure performance) 
	-numbodies=<N>    (number of bodies (>= 1) to run in simulation) 
	-device=<d>       (where d=0,1,2.... for the CUDA device to use)
	-numdevices=<i>   (where i=(number of CUDA devices > 0) to use for simulation)
	-compare          (compares simulation results running once on the default GPU and once on the CPU)
	-cpu              (run n-body simulation on the CPU)
	-tipsy=<file.bin> (load a tipsy model file for simulation)

NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.

> Windowed mode
> Simulation data stored in video memory
> Single precision floating point simulation
> 1 Devices used for simulation
GPU Device 0: "GeForce GTX 1080" with compute capability 6.1

> Compute 6.1 CUDA device: [GeForce GTX 1080]

@wanfuse123
Copy link

wanfuse123 commented Oct 9, 2020 via email

@Shohou
Copy link

Shohou commented Nov 10, 2020

/usr/lib/wsl/lib is included through /etc/ld.so.conf.d. You will find a file there with instructions how to prevent its generation. You have to delete that file and create /etc/wsl.conf with the fillowing lines:

[automount]
ldconfig = false

@thierryherrmann
Copy link

Same problem here using Win 10 build 20257.1 both with ubuntu 18.04 and ubuntu 20.04 (kernel 4.19.128).
Problem shows up either through sudo apt-get install -y nvidia-docker2 or sudo apt-get install -y cuda-toolkit-11-0, two steps mentioned in the official NVidia CUDA-wsl procedure.
Must have worked at some point but something must have been broken

@ligewu
Copy link

ligewu commented Jan 3, 2021

  1. disable automount in /etc/wsl.conf

[automount]
ldconfig = false

  1. copy /usr/lib/wsl/lib to /usr/lib/wsl2/lib (in wsl, writable)

  2. edit /etc/ld.so.conf.d/ld.wsl.conf

/usr/lib/wsl/lib --> /usr/lib/wsl2/lib (new location)

  1. rm /usr/lib/wsl2/lib/libcuda.so.* and sudo ldconfig

works for CUDA in WSL, but "Segmentation fault" in DirectML

@ImanHosseini
Copy link

Will this issue ever be fixed?

@sryio
Copy link

sryio commented Sep 3, 2021

There is another solution works for me :

  • Open cmd as Administrator and cd into C:\Windows\System32\lxss\lib
  • Delete libcuda.so and libcuda.so.1 (You can also do this in Windows Explorer as well)
  • Run wsl -e /bin/bash in cmd and you should already in /mnt/c/Windows/System32/lxss/lib, now you have permission to create symlink:
    ln -s libcuda.so.1.1 libcuda.so.1
    ln -s libcuda.so.1.1 libcuda.so

Done.

@Soooda
Copy link

Soooda commented Oct 7, 2021

Having this output running sudo zypper install <packages> on openSUSE-42 distro.

(3/7) Installing: libtermkey1-0.18-1.1.x86_64 ....................................................................[done]
Additional rpm output:
/sbin/ldconfig: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link



(4/7) Installing: libunibilium0-1.2.0-1.1.x86_64 .................................................................[done]
Additional rpm output:
/sbin/ldconfig: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link



(5/7) Installing: libuv1-1.6.1-5.4.x86_64 ........................................................................[done]
Additional rpm output:
/sbin/ldconfig: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link



(6/7) Installing: libvterm0-0~bzr681-1.11.x86_64 .................................................................[done]
Additional rpm output:
/sbin/ldconfig: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

Just upgraded to Windows 11 and installed 510.06_gameready_win11_win10-dch_64bit_international.exe following Run Linux GUI apps on WSL
Does anyone encounter a similar issue?

@donalhunt
Copy link

There is another solution works for me :

  • Open cmd as Administrator and cd into C:\Windows\System32\lxss\lib
  • Delete libcuda.so and libcuda.so.1 (You can also do this in Windows Explorer as well)
  • Run wsl -e /bin/bash in cmd and you should already in /mnt/c/Windows/System32/lxss/lib, now you have permission to create symlink:
    ln -s libcuda.so.1.1 libcuda.so.1
    ln -s libcuda.so.1.1 libcuda.so

Done.

This solution worked for me with the addition of granting permissions on the lib folder to my regular (non-admin) user. Don't forget to revert the permissions afterwards. ;)

@amaleewilson
Copy link

Having this output running sudo zypper install <packages> on openSUSE-42 distro.

(3/7) Installing: libtermkey1-0.18-1.1.x86_64 ....................................................................[done]
Additional rpm output:
/sbin/ldconfig: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link



(4/7) Installing: libunibilium0-1.2.0-1.1.x86_64 .................................................................[done]
Additional rpm output:
/sbin/ldconfig: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link



(5/7) Installing: libuv1-1.6.1-5.4.x86_64 ........................................................................[done]
Additional rpm output:
/sbin/ldconfig: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link



(6/7) Installing: libvterm0-0~bzr681-1.11.x86_64 .................................................................[done]
Additional rpm output:
/sbin/ldconfig: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

Just upgraded to Windows 11 and installed 510.06_gameready_win11_win10-dch_64bit_international.exe following Run Linux GUI apps on WSL Does anyone encounter a similar issue?

Exact same issue. Solution below worked for me, too.

There is another solution works for me :

* Open cmd as Administrator and cd into C:\Windows\System32\lxss\lib

* Delete libcuda.so and libcuda.so.1 (You can also do this in Windows Explorer as well)

* Run `wsl -e /bin/bash` in cmd and you should already in `/mnt/c/Windows/System32/lxss/lib`, now you have permission to create symlink:
    ln -s libcuda.so.1.1 libcuda.so.1
    ln -s libcuda.so.1.1 libcuda.so

Done.

@EvanThomasKaduthanam
Copy link

I am new to this, and I din't get what you sould do in the solution u all said works...

I deleted libcuda.so and libcuda.so.1 using File Explorer, now I am having trouble figuring out the next part, thank you in advance!

@LanceMcCarthy
Copy link

I am new to this, and I din't get what you sould do in the solution u all said works...

I deleted libcuda.so and libcuda.so.1 using File Explorer, now I am having trouble figuring out the next part, thank you in advance!

Here are the exact steps:

image

@wswind
Copy link

wswind commented Dec 10, 2021

I don't want to delete anything under System32
Make symbolic links in another folder like /usr/lib/wsl/lib2 would fix this in wsl.

  1. add ldconfig = false to /etc/wsl.conf
echo -e "[automount]\nldconfig = false" | sudo tee -a /etc/wsl.conf
  1. make the symbolic link and use it
sudo mkdir /usr/lib/wsl/lib2
sudo ln -s /usr/lib/wsl/lib/* /usr/lib/wsl/lib2
echo /usr/lib/wsl/lib2 | sudo tee /etc/ld.so.conf.d/ld.wsl.conf

@SuperSandro2000
Copy link

  • /mnt/c/Windows/System32/lxss/lib

Works on my machine.

Why isn't this not fixed by WSL already?

@SofiaXu
Copy link

SofiaXu commented Jan 14, 2022

  1. Run CMD in Windows(as Administrator)
  2. cd %SYSTEMROOT%\System32\lxss\lib
  3. del libcuda.so
  4. mklink libcuda.so libcuda.so.1
  5. Run wsl
  6. sudo ldconfig
  7. done
    libcuda.so, libcuda.so.1 and libcuda.so.1.1 are same file because they have same hash.

@Purpzie
Copy link

Purpzie commented Mar 3, 2022

This also happens in Arch whenever you use pacman. It seems like this isn't limited to Ubuntu. (Note: I used wsl --import with Arch's official bootstrap, not the hacky ArchWSL.)

[2022-03-03T10:28:49-0600] [ALPM-SCRIPTLET] ldconfig: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

@petemoore
Copy link

Can this issue be given the "bug" label?
Are there any plans for a fix?
Thanks.

@NotTheDr01ds
Copy link

NotTheDr01ds commented Aug 24, 2022

Primarily for Windows 11 users (since it uses the [boot].command option in /etc/wsl.conf) -- A slight improvement to the excellent suggestion by @wswind. This approach builds on that one, but doesn't require any change to /etc/ld.so.conf.d/ld.wsl.conf:

One time configuration:

sudo mount --bind /usr/lib/wsl/lib /usr/lib/wsl/lib2 -o X-mount.mkdir
sudo umount /usr/lib/wsl/lib
sudo ln -s /usr/lib/wsl/lib2/* /usr/lib/wsl/lib

Then add the following to /etc/wsl.conf:

[boot]
command = sleep 10 ; mount --bind /usr/lib/wsl/lib /usr/lib/wsl/lib2 -o X-mount.mkdir ; umount /usr/lib/wsl/lib

That:

  • Bind mounts the ../wsl/lib to ../wsl/lib2 (essentially creates a copy of the mount)

  • Unmounts the original /usr/lib/wsl/lib

  • Creates the symlinks so that they live in the directory ldconfig expects

  • On subsequent boots, the symlinks will already exist in the filesystem, but the /init generated automount will be "hiding" them (and they'd be broken symlinks anyway until the location they are pointing to is mounted). Mounting the bind-mount and unmounting the init-generated one (via /etc/wsl.conf) will cause them to show up and be valid.

It's also possible to get this running on Windows 10 using a wsl.exe -u root mount ... command-line somewhere in your shell startup. If anyone wants help with that, let me know.

Side-note: It might be better to delete and regenerate all of the symlinks on each restart of the WSL distribution anyway. This would make sure that any changes to the libs in a new WSL release are properly symlinked.

@nchj
Copy link

nchj commented Sep 12, 2022

After two years of discussion
Microsoft still has not marked this as a bug
nor has it provided an official solution
But this problem affects everyone who uses GPU in WSL2
It Really Sucks

@julianxhokaxhiu
Copy link

I don't want to delete anything under System32 Make symbolic links in another folder like /usr/lib/wsl/lib2 would fix this in wsl.

  1. add ldconfig = false to /etc/wsl.conf
echo -e "[automount]\nldconfig = false" | sudo tee -a /etc/wsl.conf
  1. make the symbolic link and use it
sudo mkdir /usr/lib/wsl/lib2
sudo ln -s /usr/lib/wsl/lib/* /usr/lib/wsl/lib2
echo /usr/lib/wsl/lib2 | sudo tee /etc/ld.so.conf.d/ld.wsl.conf

This should be flagged as the real workaround until an official fix is provided. @craigloewen-msft is it possible to have a bit of attention on this one? Should be trivial to be fixed. Thank you

@RandomDSdevel
Copy link

RandomDSdevel commented Jul 9, 2023

     I've also been seeing this issue for quite some time. I'm running a custom WSL2 image initially generated from what was then the latest upstream Gentoo 'stage3' tarball as of some time on February 26th, 2022 using the instructions from here and the relevant Gentoo Wiki page. I've kept both the default, main Gentoo ebuild repository and another ebuild repository I added later synced and kept my packages up to date by re-'emerge'ing them as needed, alongside other package administration/maintenance. This all started back on some version of 64-bit Intel Windows 10 Pro 21H2 — I think that's what must've come with my system, IIRC? —, but I've obviously run several Windows OS and Microsoft Store app updates since then and am currently now on:

  • 64-bit Intel Windows 11 Pro 22H2, build 22621.1928
  • Windows Feature Experience Pack v1000.22644.1000.0

This has all worked rather well, for the most part. I'm not going to mess with my System32 folder or any other Windows OS folders/files, obviously, or any WSL2 filesystem mappings. I'll just wait for an official fix to land.

Edit: I forgot to mention that I'm also currently using:

PowerShell 7.3.5
PS C:\Users\zadmin> wsl --version
WSL version: 1.2.5.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
# (Snipped…)  

@avysk
Copy link

avysk commented Jul 28, 2023

Just mentioning: this issue was opened more than 3 years ago...

@DeForestDiamond
Copy link

It's Microsoft, we can't expect much...

@ackalker
Copy link

If no-one at Microsoft gets @mentioned, I don't think much will happen, as this issue has most likely sunk to the bottom of the pile.

@d3vv
Copy link

d3vv commented Sep 17, 2023

 wsl -v
WSL version: 1.2.5.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22000.2416
# ldconfig
ldconfig: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

Is there any progress here?

@wizpresso-steve-cy-fan
Copy link

I believe there is a bigger problem on Nvidia side. If I do a soft symlink libcuda.so.1.1 to libcuda.so.1 and libcuda.so respectively in /mnt/c/Windows/System32/lxss/lib, docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody would fail to launch. I do a hard link for now but I'm not sure if that's viable

@mosullivan93
Copy link

mosullivan93 commented Oct 20, 2023

I was curious about how to fix this while minimising the changes I needed to make to any system files and I came up with an alternative fix that is applicable to certain WSL installations and doesn't involve deleting anything in System32.

If your WSL is in C:\Program Files\WSL (as opposed to C:\Program Files\WindowsApps\MicrosoftCorporation.blahblahblah), then you can take advantage of the way WSL overlays its packaged libraries atop the system's libraries and fix the problem without needing to modify the files under C:\Windows\System32\lxss\lib.

You can check where wslservice.exe is by running: wmic service where name="wslservice" get pathname

You can create the links that ldconfig wants yourself in C:\Program Files\WSL\lib and they'll override the problematic files in your user distributions, and, importantly, the WSLg/System distribution. From an elevated CMD prompt run:

mklink "C:\Program Files\WSL\lib\libcuda.so.1" libcuda.so.1.1
mklink "C:\Program Files\WSL\lib\libnvoptix_loader.so.1" libnvoptix.so.1

Otherwise, if your wslservice.exe is in a protected location (e.g. WindowsApps) then the next least destructive option is simply renaming libcuda.so.1 using rename %SystemRoot%\System32\lxss\lib\libcuda.so.1 libcuda.so.1.bak. The only downside to this is that in your user distribution you would still need to run sudo ldconfig every boot to create the missing symlinks.

@avysk
Copy link

avysk commented Oct 21, 2023

Hello, anyone from Microsoft here? The bug is laughably old.

@vinberg88
Copy link

vinberg88 commented Nov 9, 2023

Paste in Console - Terminal =)

ln -s libcuda.so.1.1 libcuda.so.1
ln -s libcuda.so.1.1 libcuda.so
echo -e "[automount]\nldconfig = false" | sudo tee -a /etc/wsl.conf
sudo mkdir /usr/lib/wsl/lib2
sudo ln -s /usr/lib/wsl/lib/* /usr/lib/wsl/lib2
echo /usr/lib/wsl/lib2 | sudo tee /etc/ld.so.conf.d/ld.wsl.conf

@alanlivio
Copy link

Rephrasing @nchj: "After two three years of discussion Microsoft still has not marked this as a bug
nor has it provided an official solution"

@kizmat
Copy link

kizmat commented Dec 28, 2023

@wswind #5548 (comment) -Thanks!

I don't want to delete anything under System32 Make symbolic links in another folder like /usr/lib/wsl/lib2 would fix this in wsl.

  1. add ldconfig = false to /etc/wsl.conf
echo -e "[automount]\nldconfig = false" | sudo tee -a /etc/wsl.conf
  1. make the symbolic link and use it
sudo mkdir /usr/lib/wsl/lib2
sudo ln -s /usr/lib/wsl/lib/* /usr/lib/wsl/lib2
echo /usr/lib/wsl/lib2 | sudo tee /etc/ld.so.conf.d/ld.wsl.conf

This seemed to have solved it for me.
Thank you.

@wswind
Copy link

wswind commented Dec 28, 2023

@wswind #5548 (comment) -Thanks!

I don't want to delete anything under System32 Make symbolic links in another folder like /usr/lib/wsl/lib2 would fix this in wsl.

  1. add ldconfig = false to /etc/wsl.conf
echo -e "[automount]\nldconfig = false" | sudo tee -a /etc/wsl.conf
  1. make the symbolic link and use it
sudo mkdir /usr/lib/wsl/lib2
sudo ln -s /usr/lib/wsl/lib/* /usr/lib/wsl/lib2
echo /usr/lib/wsl/lib2 | sudo tee /etc/ld.so.conf.d/ld.wsl.conf

This seemed to have solved it for me. Thank you.

Haha, it's my pleasure. I switched to a laptop without nvidia graphics card and haven't seen this problem since then.

I'm impressed that this issue hasn't been fixed after all these years.. 😂

@alanlivio
Copy link

Hi all. I still have this problem. Is there no official solution from the WSL team?

@imaspol
Copy link

imaspol commented Jan 12, 2024

Hi all, I've just run into the same bug when installing nvidia drivers into wsl:
sudo apt-get install -y cuda-drivers
The message I've got:
/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link
Hope my message will wake up the issue...

@matbee-eth
Copy link

matbee-eth commented Jan 25, 2024

##5548 (comment)
You may have to rebuild your nvidia docker containers for them to see the updated symlinks

@infish155
Copy link

What would happen if I just ignore it? I dont dare to do anything without official solusion.

@NotTheDr01ds
Copy link

@infish155 Per the thread above, nothing seems to actually be broken by the error. Ignoring it is just fine - That's what most others are doing in the meantime :-)

@BraveDrXuTF
Copy link

There is another solution works for me :

  • Open cmd as Administrator and cd into C:\Windows\System32\lxss\lib
  • Delete libcuda.so and libcuda.so.1 (You can also do this in Windows Explorer as well)
  • Run wsl -e /bin/bash in cmd and you should already in /mnt/c/Windows/System32/lxss/lib, now you have permission to create symlink:
    ln -s libcuda.so.1.1 libcuda.so.1
    ln -s libcuda.so.1.1 libcuda.so

Done.

“failed to create symbolic link 'libcuda.so.1': Permission denied”, what should I do sir

@BraveDrXuTF
Copy link

There is another solution works for me :

  • Open cmd as Administrator and cd into C:\Windows\System32\lxss\lib
  • Delete libcuda.so and libcuda.so.1 (You can also do this in Windows Explorer as well)
  • Run wsl -e /bin/bash in cmd and you should already in /mnt/c/Windows/System32/lxss/lib, now you have permission to create symlink:
    ln -s libcuda.so.1.1 libcuda.so.1
    ln -s libcuda.so.1.1 libcuda.so

Done.

“failed to create symbolic link 'libcuda.so.1': Permission denied”, what should I do sir

fixed with cmd admin, but another problem arises: CUDA backend failed to initialize: FAILED_PRECONDITION: No visible GPU devices.

@rodgermoore
Copy link

Hi all, I've just run into the same bug when installing nvidia drivers into wsl: sudo apt-get install -y cuda-drivers The message I've got: /sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link Hope my message will wake up the issue...

Once a Windows NVIDIA GPU driver is installed on the system, CUDA becomes available within WSL 2. The CUDA driver installed on Windows host will be stubbed inside the WSL 2 as libcuda.so, therefore users must not install any NVIDIA GPU Linux driver within WSL 2.

Source

@BHare1985
Copy link

Running into this myself with both Ubuntu and Debian from the Microsoft Store.

This solved it when run inside the linux terminal:

cd /usr/lib/wsl/lib
sudo rm libcuda.so libcuda.so.1
sudo ln -s libcuda.so.1.1 libcuda.so.1
sudo ln -s libcuda.so.1 libcuda.so
sudo ldconfig

@RyanbowZ
Copy link

RyanbowZ commented Apr 7, 2024

remember to execute sudo ldconfig after softlink in the directory of /usr/lib/wsl/lib, rather than C:\Windows\System32\lxss\lib
Otherwise your NVidia GPU Driver might fail!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests