An error was reported by the counter measurement library. failed to prepare kernel for profiling

Hi, I use ncu --mode=launch executeble to profile metrics, but got this error when connected to nsight compute UI:
Can't parse message of type "NV.Profiler.ProfilerConfigurationMessage" because it is missing required fields: Configs[2].Option, Configs[3].Option

When I click Profile kernel button, it told me that ‘An error was reported by the counter measurement library. Failed to prepare kernel for profiling.’
image

And details page shows:

Can anyone help to solve this problem?

Hi, @hyaloids

Is it only happens when you attach to the app ?
Can you profile directly in NCU GUI, using interactive profile ?

Hi, I’m a sudo user, when I use ncu command to get ncu-rep file and got this error:

Please delete /tmp/nsight-compute-lock and try again. Thanks !

1 Like

It works! Thanks a lot!

Good to know ! Thanks for the reply !