Einglish page is here.
何が起きたか
NsightComputeでパフォーマンスを測ろうとしたら怒られた.
GUI版ではERR_NVGPUCTRPERM: Permission issue with Performance Countersだったり,CUI版だと
==ERROR== The application returned an error code (6) ==WARNING== No kernels were profiled ==WARNING== Profiling kernels launched by child processes requires the --target-processes all optionだったり.
環境
- uname -a
- Linux shiki.momo86.net 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
- cat /etc/os-release
NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
- nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2019 NVIDIA Corporation Built on Wed_Apr_24_19:10:27_PDT_2019 Cuda compilation tools, release 10.1, V10.1.168
- /etc/modprobe.d下に(名前は何でもいいですが)nsight-privilege.confなどの名前で と書いたファイルを作成.
- 計算機を再起動
現状rootでは実行できます.
解決策
一般ユーザが実行してプロファイリングできるようにします.
nvidiaのカーネルモジュールを読み込む際にオプションを渡せば解決です.
参考
カテゴリー:CUDA
記事作成日:2019-07-13