On my Ubuntu 18.04 system CUDA Toolkit 10.1.168 installed with CUDA-driver 418.67. While I am trying to use nvprofile as a non-admin user I am getting the following error:
Cuda failure p2pBandwidthLatencyTest.cu:213: 'an illegal memory access was encountered'
==68236== Warning: ERR_NVGPUCTRPERM - The user does not have permission to profile on the target device. See the following link for instructions to enable permissions and get more information: https://developer.nvidia.com/ERR_NVGPUCTRPERM
==68236== Profiling application: ./p2pBandwidthLatencyTest
==68236== Profiling result:
No kernels were profiled.
No API activities were profiled.
==68236== Warning: Some profiling data are not recorded. Make sure cudaProfilerStop() or cuProfilerStop() is called before application exit to flush profile data.
I have noticed that there are few discussion on this. where folks suggest the following changes:
modprobe nvidia NVreg_RestrictProfilingToAdminUsers=0
But this does not help me.
Thanks.