Hi, using Jetpack 5.1.2 on a Xavier NX along with Nsight Systems 2023.2.4 on my x86 host machine I am not able to collect CPU context switch tracing in Systems (“Target does not support CPU context switch data collection”).
I checked my paranoid level according to other forum posts and it was already 2. I sanity checked by running sudo nsys profile python -c 'print("foo")' with the paranoid level set to 2 and 4. Runs fine when at 2, at 4 it gives the warning “WARNING: CPU context switch tracing not supported, disabling.”.
So it seems like it’s a Systems error. Any suggestions as to how to fix it?
In order to collect CPU context switch trace we use the linux perf subcomponent, in order for perf to collect that info, the paranoid level must be 2 or less.
Upgrading to 2024.2.2 seems to fix the issue in regards to CPU context switching, however has another small problem where manually stopping profiling doesn’t work, and the program must also be closed manually for profiling to end.
Are you using cudaProfilerStart/Stop to control the profiling, there was a known issue with that functionality and termination.
In general, the most recent version of Nsight Systems is available for download via Nsight Systems | NVIDIA Developer. The version that ships with the CUDA Toolkit always lags a bit due to packaging and shipping considerations.