I’m trying to get CUDA working on Ubuntu with WSL2. I followed the guide here very carefully and from a fresh install, but I’m still running into issues. I feel very sure that I have the proper version of WSL, the Microsoft Windows Insiders Program build, and the driver (installed on Windows not WSL). I used the solution from this post to install the CUDA toolkit without the driver.
The issue I’m running into is that when I run the BlackScholes sample or
docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark I get the following error which causes them both to fail:
> Windowed mode > Simulation data stored in video memory > Single precision floating point simulation > 1 Devices used for simulation GPU Device 0: "GeForce GTX 770" with compute capability 3.0 > Compute 3.0 CUDA device: [GeForce GTX 770] CUDA error at bodysystemcuda_impl.h:159 code=46(cudaErrorDevicesUnavailable) "cudaEventCreate(&m_deviceData.event)"
[./BlackScholes] - Starting... GPU Device 0: "Kepler" with compute capability 3.0 Initializing data... ...allocating CPU memory for options. ...allocating GPU memory for options. CUDA error at BlackScholes.cu:116 code=46(cudaErrorDevicesUnavailable) "cudaMalloc((void **)&d_CallResult, OPT_SZ)"
Any thoughts on what might be causing this?