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)
WSL GPU Detection Issue in CUDA Example
Problem
Running the default CUDA example in WSL fails to detect the GPU.
Workaround
Setting
LD_LIBRARY_PATHresolves the issue: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)