I’m running into some issues with WSL2 on a 4x A6000 Machine. I’ve tried both CUDA 11.7 and 12.0 samples and get “Error: only 0 Devices available, 1 requested. Exiting.” after successfully building and attempting to run the nbody Cuda sample.
$ echo $PATH returns the following successful cuda path:
$ echo $CUDA_HOME returns the following:
$ ldconfig -p returns the following list of cuda libraries having been loaded:
Nvidia-SMI returns the following:
…what exactly am I missing from this seemingly appropriate WSL2 setup? I did not install Nvidia display drivers, I am on a brand new WSL2 Ubuntu image running on the latest kernel from Microsoft. I am on Windows 11 22H2.
Drivers as stated in Nvidia-SMI output.
Trying to load Pytorch torch.cuda.is_available() returns the following errors:
- “UserWarning: CUDA initialization: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error?”
- Error 2: out of memory (Triggered internally at /opt/pytorch/pytorch/c10/cuda/“CUDAFunctions.cpp:109”)
Any help here would be wildly appreciated. Thanks!