Cuda driver version does not match cuda toolkit (nvcc)

Hi!

I’m trying to use cuda with PyTorch. The cuda driver version does not match the cuda toolkit. I can change the toolkit version to whichever I like, but I cannot change the driver version to the lastest one:

Driver version 11.6 by: nvidia-smi
Thu Aug 31 17:54:44 2023
±----------------------------------------------------------------------------+
| NVIDIA-SMI 510.73.08 Driver Version: 510.73.08 CUDA Version: 11.6 |

toolkit version 11.8 by: nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:33:58_PDT_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

You see there is a mismatch. How to switch to a latest driver version so I can get version 11.8 from nvidia-smi?

Many thanks in advance!