I used PyTorch for training on WSL2. But today my GPU suddenly can’t be used for training, even if the GPU is specified, the CPU will still be used.
Use nvidia-smi and find something wrong:
±----------------------------------------------------------------------------+
| NVIDIA-SMI 520.56.05 Driver Version: 522.25 CUDA Version: ERR! |
|-------------------------------±---------------------±---------------------+
…
But nvidia-smi on my windows11 is correct:
±----------------------------------------------------------------------------+
| NVIDIA-SMI 522.25 Driver Version: 522.25 CUDA Version: 11.8 |
|-------------------------------±---------------------±---------------------+
…
My GPU: GeForce RTX 3050 laptop