CUDA sample throwing error

Hi Thanks for the answer, I have uninstalled Wsl 1 distro and now the wsl command shows the correct version as well.

But I still have the CUDA issue. I followed exactly the steps mentioned on nvidia site to just install the toolkit. I am not sure if the linux drivers got installed with it? How can I check this?

I have attached dxdiag output DxDiag.txt (117.1 KB)

Thanks