Incompatible CUDA driver version

I cannot profile the example in the tutorial https://developer.nvidia.com/blog/even-easier-introduction-cuda/ nvprof crashes by the ======== Error: incompatible CUDA driver version

jaarpa@DESKTOP-KSNUPOP:~/cutest$ nvprof ./add_cuda
==1236== NVPROF is profiling process 1236, command: ./add_cuda
======== Profiling result:
No kernels were profiled.
No API activities were profiled.
======== Error: incompatible CUDA driver version.
jaarpa@DESKTOP-KSNUPOP:~/cutest$ nvprof --version
nvprof: NVIDIA (R) Cuda command line profiler
Copyright (c) 2012 - 2020 NVIDIA Corporation
Release version 11.0.221 (21)
jaarpa@DESKTOP-KSNUPOP:~/cutest$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Wed_Jul_22_19:09:09_PDT_2020
Cuda compilation tools, release 11.0, V11.0.221
Build cuda_11.0_bu.TC445_37.28845127_0

Do you have the same or the higher CUDA driver version installed which comes with the CUDA 11.0 toolkit? nvidia-smi can be used to query the CUDA driver version.

As far as I know I have the latest versions. I ran the queryDevice example and this is what I got

./deviceQuery Starting…
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s) Device 0: “NVIDIA GeForce GTX 1050”
CUDA Driver Version / Runtime Version 11.4 / 11.4
CUDA Capability Major/Minor version number: 6.1
Total amount of global memory: 3072 MBytes (3221225472 bytes)
(006) Multiprocessors, (128) CUDA Cores/MP: 768 CUDA Cores
GPU Max Clock rate: 1442 MHz (1.44 GHz)
Memory Clock rate: 3504 Mhz
Memory Bus Width: 96-bit
L2 Cache Size: 786432 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(131072), 2D=(131072, 65536), 3D=(16384,
16384, 16384) Maximum Layered
1D Texture Size, (num) layers 1D=(32768), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(32768, 32768), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total shared memory per multiprocessor: 98304 bytes
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
M
aximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device supports Managed Memory: Yes
Device supports Compute Preemption: Yes
Supports Cooperative Kernel Launch: Yes
Supports MultiDevice Co-op Kernel Launch: No
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 11.4, CUDA Runtime Version =
11.4, NumDevs = 1 Result =
PASS

and nvidia-smi gives me this (consider Im using WSL)

Wed Jul 28 20:22:33 2021
±----------------------------------------------------------------------------+
| NVIDIA-SMI 470.28 Driver Version: 470.76 CUDA Version: 11.4 |
|-------------------------------±---------------------±---------------------+
| 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 … Off | 00000000:01:00.0 Off | N/A |
| N/A 39C P8 N/A / N/A | 76MiB / 3072MiB | ERR! Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: | | GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|================================================|
| No running processes found |
±---------------------------------------------------------+