nvprof: Warning: The user does not have permission to profile on the target device.

I have the exact same problem. My system has:
Ubuntu: 16.04
Driver Version: 418.87.00
CUDA Version: 10.1

I followed all the steps but none of them worked. Is there a solution for this?

Thanks!