Running nsys on WSL2 gives "No GPU associated to the given UUID"

I am new to WSL and GPU computing. I was trying to set things up on my WSL2 so I can use my GPU on WSL. It seems like I can use my GPU here… but For some reason, nsys profile --stats=true ./vector_add profiling this simple vector_add gives me [QuadDCommon::tag_message*] = No GPU associated to the given UUID error.

when I run nvidia-smi,
I can see my GPU on WSL

image

  • Windows 11
  • WSL2
  • cuda_12.6
  • nsys 2024.4.2.133-244234382004v0
  • nvidia gpu driver 561.09

I am not sure what to do…