Error: Some events were lost. How do I fix this?

I’m profiling Python code which uses CUDA (e.g. CuPy) and always get an error about events being lost e.g.

Some events (328,938) were lost. Certain charts (including CPU utilization) on the timeline may display incorrect data. Try to decrease sampling rate and start a new profiling session.

Does anyone know if this error is something to worry about? Decreasing the sampling rate didn’t help.

I also get a couple of warnings, I don’t know if they’re related:

  • Installed CUDA driver version (11.2) is not supported by this build of Nsight Systems. CUDA trace will be collected using libraries for driver version 11.1
  • The operating system throttled the collection of sampling data 321 times.

Thanks for any help.