Nsight compute on WSL2

I want to use Nsight compute on WSL2(nv-nsight-cu-cli --set detailed -o result ./result). But, it shows that " ==ERROR== Profiling is not supported on device 0 as it uses the Windows Subsystem for Linux (WSL)." Are there any solutions or ideas about the kernel analysis on WSL2?

Hi, @zhuheng

Please note:

  • Profiling on Windows Subsystem for Linux (WSL) is only supported with WSL version 2.
  • Profiling is supported on Windows 10 WSL with OS build version 19044 and greater, and NVIDIA display driver version 545 or higher. It is not supported on Windows 10 WSL for systems that exceed 1 TB of system memory.
  • Profiling is supported on Windows 11 WSL with NVIDIA display driver version 525 or higher.

Please check if your env meet the requirement.
Also please try with Nsight Compute 2023.3 or newer.
If you still have concern, please tell me your Nsight compute version and os/driver version. Thanks !

1 Like

Thanks, Veraj! After upgrading the Nsight Compute, this problem is solved. But, a new problem happened(==ERROR== Failed to prepare kernel for profiling).
I tried some methods mentioned in other posts, such as reboot and add “-gencode arch=compute_86,code=sm_86”. But, this error is still there.
os: WSL-ubuntu20.04
driver version: 555.85
cuda: 11.6
Nsight compute version: 2024.2.0.0
device info: NVIDIA GeForce RTX 3060 Ti with Bank Mode:4-Byte <<< grid (1,1) block (32,32)>>>

Can you also update the cuda version and rebuild your sample again ?

Thanks, solved!