i try to use ncu CLI on WSL2(ubuntu 22.04) to profile the python target(using pytorch in python). but here comes the problem, and i have no idea how to solve it. Could you help me?
==ERROR== Profiling is not supported on device 0 as it uses the Windows Subsystem for Linux (WSL).
==PROF== Disconnected from process 1687
==WARNING== No kernels were profiled.
==WARNING== Profiling kernels launched by child processes requires the --target-processes all option.
Possibly not working, as according to WSL Compute Software Support, while Nsight Systems is supported, Nsight Compute or it’s CLI version ncu, is not mentioned.
I follow the guideline installing latest cuda 12.2.1-1, latest WSL kernal vesion, latest Nsight Compute 2023.2.1.0 (build 33050884).
However, I still get this error…
What else shoud I do? is there any log I can provide?
Device 0: NVIDIA GeForce RTX 3060 Ti
…
==ERROR== Profiling is not supported on device 0 as it uses the Windows Subsystem for Linux (WSL). Refer to Release Notes :: Nsight Compute Documentation for more details.
Linux version 5.15.90.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Jan 27 02:56:13 UTC 2023
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Jul_11_02:20:44_PDT_2023
Cuda compilation tools, release 12.2, V12.2.128
Build cuda_12.2.r12.2/compiler.33053471_0
$ ncu --version
NVIDIA (R) Nsight Compute Command Line Profiler
Copyright (c) 2018-2023 NVIDIA Corporation
Version 2023.2.1.0 (build 33050884) (public-release)
$ nvidia-smi
Sun Aug 27 19:21:59 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.103 Driver Version: 537.13 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| 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 3060 Ti On | 00000000:09:00.0 On | N/A |
| 0% 49C P8 8W / 200W | 502MiB / 8192MiB | 3% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 32 G /Xwayland N/A |
+---------------------------------------------------------------------------------------+