Can't use cuda in wsl2

Sermier 21 Reputation points
2020-11-06T05:42:00.627+00:00

I'm trying to use cuda on my machine but meet some problems.
I follow every step in this web: https://docs.nvidia.com/cuda/wsl-user-guide/index.html, and I made a double check to ensure that I didn't make a mistake.
My bulid version now is 20251.1, wsl2 kernel is 4.19.128, and I use Ubuntu18.04 ubder wsl2.
My GPU is Nvidia Quadro RTX5000, cuda toolkit is 11.0 ubder wsl2.
But when I use torch.cuda.is_available() to check the cuda, I get a False return, and also can't run any code using cuda.
How can I solve this problem?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,659 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,776 Reputation points
    2020-11-06T07:17:43.95+00:00

    Hi @Sermier ,

    I suggest asking over here:
    https://github.com/MicrosoftDocs/WSL/issues

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.