No CUDA-capable device is detected

Using WSL2, Windows11,GeForce RTX 3080 Ti,Ubuntu22.04,hp 2022 OMEN 30L Desktop,CUDA12.1, driver v528.49:

Getting no CUDA-capable device is detected in U22.04 image
after updating driver to v528.49
with ./deviceQuery

Was working prior.

Hi there @EdSeymore17, welcome to the NVIDIA developer forums!

I tried reproducing right now, difference for me that I have 3080 (not TI) and using the default Ubuntu mage from WSL2 (20.04):

  • Installed 528.24 in Windows, started WSL, tried deviceQuery, no problem
  • Installed 528.49 in Windows, started WSL, tried deviceQuery, no problem
  • Installed latest driver 531.29 in Windows, started WSL, tried deviceQuery, no problem

I emphasize the “in Windows” part because that is often a cause for issues in WSL. You MUST NOT install any GPU driver inside WSL or things will break.

So one thought that I have is that your Ubuntu 22 installation has some form of automatic (unattended) updates enabled and tried to update CUDA or GPU drivers.