Get usage of cuda thread


In my program, I want to add some module to check the hardware state.

However I can’t find the way to get usage of CUDA thread(SM usage).

If you have that kind of library or query, could you let me know?

I want the same value with windows task manager