nv-nsight-cu-cli doesn't work on Tesla P100

I was trying to run a program with nv-nsight-cu-cli on P100 but it throws this error:
==ERROR== The application returned an error code (11)

The command I used to run is: sudo /usr/local/cuda-10.1/NsightCompute-2019.1/nv-nsight-cu-cli ./gups and it works perfectly fine on GTX1080. How can I run the profiler on Tesla P100?

P100 is not supported by Nsight Compute. You can refer to https://docs.nvidia.com/nsight-compute/ReleaseNotes/index.html#gpu-support for the list of supported hardware.