CUDA not working on Ubuntu 22.04, nVidia driver 515, CUDA version 11.7 RTX 3060 GA106

Hi there -

I have a “GeForce RTX 3060 Lite Hash Rate” card installed in my Ubuntu 22.04 desktop machine. I have nvidia drivers v515 installed and working. I’ve tried updating to more recent drivers (including 530), but this has failed, falling back to Nouveau.

I’ve installed the 515 dkms, “dkms status” includes this line:
nvidia/515.105.01, 5.19.0-41-generic, x86_64: installed

nvidia-smi says:
Fri Apr 28 09:43:04 2023
±----------------------------------------------------------------------------+
| NVIDIA-SMI 515.105.01 Driver Version: 515.105.01 CUDA Version: 11.7 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce … On | 00000000:01:00.0 On | N/A |
| 77% 43C P8 23W / 170W | 3706MiB / 12288MiB | 10% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 21125 G /usr/lib/xorg/Xorg 2714MiB |
| 0 N/A N/A 21459 G /usr/bin/gnome-shell 96MiB |
| 0 N/A N/A 29788 G …697090788005070484,131072 770MiB |
| 0 N/A N/A 1516183 G …veSuggestionsOnlyOnDemand 121MiB |
±----------------------------------------------------------------------------+

I tried digging into nvidia-bug-report, but it’s big, and I got lost.

nvidia-bug-report.log.gz (409.9 KB)

when I try to use PyCUDA, I get
numba.cuda.cudadrv.error.CudaSupportError: Error at driver init: Call to cuInit results in CUDA_ERROR_UNKNOWN (999)

when I try to use PyTorch, it says that CUDA is unavailable.
torch.cuda.is_available()
False

Is there a step I missed on setting up the drivers, the CUDA toolkit? Should I bite the bullet and debug why the 530 drivers are not working on my machine? Is my version of 3060 unsupported?

Thanks