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

Fix CUDA detection on WSL #847

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

m0nsky
Copy link
Contributor

@m0nsky m0nsky commented Jul 12, 2024

I noticed that CUDA was working fine on WSL if the libs were put in the executable (root) dir of the application, but CUDA was not getting automatically selected if multiple runtimes were provided. It turns out that SystemInfo was unable to detect the CUDA version on WSL because the default directory is /usr/local/cuda instead of /usr/local/bin/cuda.

This PR introduces multiple default CUDA paths for Linux to detect the CUDA version.

@martindevans martindevans merged commit 23bf941 into SciSharp:master Jul 12, 2024
5 of 6 checks passed
@m0nsky m0nsky deleted the fix-cuda-detection-wsl branch July 12, 2024 14:58
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

Successfully merging this pull request may close these issues.

2 participants