How to make CUDA.jl work in WSL2

zwwi
Fri, 03 Jul 2020 13:08:44 +0000
GPU

I am using the WSL2 (Ubuntu) with version 4.19.121-microsoft-standard, and have installed the CUDA driver provided here: NVIDIA Drivers for CUDA on WSL.
I also have installed nvidia-cuda-toolkit.
I’m curious to know how I can make CUDA.jl work under this circumstance.

When I test CUDA, I got the error message:

Error: Could not initialize CUDA
│   exception =
│    CUDA error (code 100, CUDA_ERROR_NO_DEVICE)

Thank you in advance.

14 posts - 6 participants