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

WSL: Number of devices is 0 #205

Open
JannisFengler opened this issue Mar 22, 2024 · 2 comments
Open

WSL: Number of devices is 0 #205

JannisFengler opened this issue Mar 22, 2024 · 2 comments
Assignees

Comments

@JannisFengler
Copy link
Contributor

WSL GPU Detection Issue in CUDA Example

Problem

Running the default CUDA example in WSL fails to detect the GPU.

Workaround

Setting LD_LIBRARY_PATH resolves the issue:

export LD_LIBRARY_PATH="/usr/lib/wsl/lib:$LD_LIBRARY_PATH"

Suggestion

rules_ll appends automatically /usr/lib/wsl/lib to LD_LIBRARY_PATH when rules_ll is running in WSL.
(Not sure If this belongs into the nix flake or into the bazel rules)

@aaronmondal
Copy link
Contributor

@JannisFengler Hmm since #83 this seems to also occur on linux. I'm trying to find a more general solution. In the meantime, could you check whether the same issue still persists with the current main branch and whether the fix for WSL still works as before?

@aaronmondal
Copy link
Contributor

aaronmondal commented May 28, 2024

I think this should be addressed by

Would you mind trying again? If we're lucky it's no longer required to have a cuda driver on WSL at all. If this doesn't work for WSL2 because of passthrough mechanisms I can add the path to the runtime CUDA driver as a flag.

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

No branches or pull requests

2 participants