-
Notifications
You must be signed in to change notification settings - Fork 822
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 works once but then disappears from WSL2 after restart with an external GPU #5604
Comments
What you describe can be #5506 if you have multiple distros and aren't watching which one is fired up first. Failing that, have a look at the [ed,rethink] You might try a |
Thanks for the suggestions @therealkenc . I don't think this is a dupe of #5506, because I tried I also tried doing a Is there any way to manually trigger the |
Okay thanks for the additional info, appreciated. Yeah the relationship to #5506 was a lark, which barely survived my [ed,rethink]. Still, it is "weird" that the drivers don't mount after your enclosure is unplugged (presumably unplugged even once). One good place to ask is over in the NVIDIA CUDA on WSL forum. I don't personally have an external GPU to give you a confirm, but maybe some others using Thunderbolt will chime with a me2.
That's not a bad question. That directory is |
Update: after updating to the latest insider dev build (20175) and re-installing the cuda drivers, the cuda libs now seem to survive disconnection of the egpu. Which is making me realize it's possible that the original problem was that the libs disappear when a new update is installed. I think the first time I encountered this it was at the same time as a new update got installed. So I cannot reproduce this now, but I suspect it should be left open at least until the next update gets installed since I'm still not sure what the underlying cause was? |
Yeah we let 'em float open for an unspecified period as a place for me2s to land if it seems plausible they might. Yours satisfies that plausibility. |
The problem has resurfaced as stated, although with (possibly?) a subtly different cause: while
Previously (shortly after installing the most recent time when |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Environment
Also relevant here is that the computer I'm testing on is a laptop with only integrated graphics built in, but connected via Thunderbolt 3 to an external GPU enclosure with a Nvidia graphics card.
Steps to reproduce
ls /usr/lib/wsl/lib
Expected behavior
I should see
libcuda.so
in/usr/lib/wsl/lib
, and cuda should work as per the new WSL 2 integration.Actual behavior
Instead I see:
libd3d12.so libd3d12core.so libdirectml.so libdxcore.so
Note - I do see the correct behavior if I re-install the Nvidia drivers linked from the CUDA pages (451.67), and CUDA applications run happily in WSL if I do this. This makes me confident it's not a driver or hardware problem. But after I restart (and maybe even just disconnect the external GPU?) they are gone and I can't find a way to get them back except by re-installing the drivers.
The text was updated successfully, but these errors were encountered: