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

Hi, thanks for your suggestions. However, I found a temporary solution:

sudo /usr/local/cuda/bin/nvprof ./jacobi_test