我正在尝试遵循本指南,但它不起作用。https://docs.nvidia.com/cuda/wsl-user-guide/index.html#known-limitations
满足的系统要求:
cat /proc/version
Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Oct 28 23:40:43 UTC 2020
windows端,安装最新版本:https ://developer.nvidia.com/cuda/wsl
按照说明安装 cuda 工具包:
sudo apt-get install cuda-toolkit-11-2
尝试运行 BlackScholes 示例:
cd /usr/local/cuda/samples/4_Finance/BlackScholes
sudo make
./BlackScholes
[./BlackScholes] - Starting...
CUDA error at ../../common/inc/helper_cuda.h:779 code=100(cudaErrorNoDevice) "cudaGetDeviceCount(&device_count)"
英伟达-smi:
nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
怎么了?