当前位置:网站首页>Solve nvprof error err_ NVGPUCTRPERM - The user does not have permission to profile on the target device.

Solve nvprof error err_ NVGPUCTRPERM - The user does not have permission to profile on the target device.

2022-06-25 17:51:00 Gene_ two thousand and twenty-two

One 、 Problem description

         In the use of nvprof Insufficient permissions

nvprof --events branch,divergent_branch ./Simple_Divergence

Two 、 resolvent :

1. see nvvp route

which nvprof
/usr/local/cuda-10.2/bin/nvprof

2. edit sudoers

         hold /usr/local/cuda-10.2/bin Add to Defaults secure_path Back , Save and exit .

sudo su
vim /etc/sudoers

3. function nvprof

         stay nvprof Add a front sudo that will do .

sudo nvprof --events branch,divergent_branch ./Simple_Divergence

原网站

版权声明
本文为[Gene_ two thousand and twenty-two]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206251736061390.html