Ncu not running on WSL2 Ubuntu

$ wsl --version
WSL version: 2.3.24.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.8037

Output of nvidia-smi
Wed Mar 25 18:35:30 2026
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.112 Driver Version: 581.95 CUDA Version: 13.0 |
±----------------------------------------±-----------------------±---------------------+
| 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 RTX 4060 … On | 00000000:01:00.0 On | N/A |
| N/A 55C P5 10W / 90W | 2632MiB / 8188MiB | 0% Default |
| | | N/A |
±----------------------------------------±-----------------------±---------------------+

±----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
±----------------------------------------------------------------------------------------+

And in NVIDIA’s control panel (running locally), I have enabled and hit ‘Apply’ at least once.

However, I am unable to collect data via ncu here -

ac@Gigantamax:~/workspace$ sudo ncu -k "kernel_A" -o kernel_abc ./kernel_abc | tee out.txt
[sudo] password for ac: 

==PROF== Connected to process 91491 (/home/ac/workspace/roofline-on-nvidia-gpus/example-codes/kernel_abc)

==ERROR== Profiling failed because a driver resource was unavailable or the user does not have permission to access NVIDIA GPU Performance Counters. Ensure that no other tool (like DCGM) is concurrently collecting profiling data. For instructions on enabling permissions, see https://developer.nvidia.com/ERR_NVGPUCTRPERM. See https://docs.nvidia.com/nsight-compute/ProfilingGuide/index.html#faq for more details.

==ERROR== Profiling failed because a driver resource was unavailable or the user does not have permission to access NVIDIA GPU Performance Counters. Ensure that no other tool (like DCGM) is concurrently collecting profiling data. For instructions on enabling permissions, see https://developer.nvidia.com/ERR_NVGPUCTRPERM. See https://docs.nvidia.com/nsight-compute/ProfilingGuide/index.html#faq for more details.
==ERROR== Failed to profile "kernel_A(double *, int, int)" in process 91491
==PROF== Trying to shutdown target application
==ERROR== The application returned an error code (9).
==ERROR== An error occurred while trying to profile.
==WARNING== No kernels were profiled.
==WARNING== Profiling kernels launched by child processes requires the --target-processes all option.

I don’t have DCGM running (at least I haven’t done anything to run it). Can someone please help me figure out why this is happening?

Hi, @achaurasia

Sorry for the issue you met.
Can you please update your wsl by using “wsl --update” and then reboot to double check ?
Also you can use “ncu” without sudo to check the output.