解决Nsight Systems错误

一、错误1

解决办法

In order to collect CPU samples, Nsight Systems uses the linux perf functionality under the covers. This functionality is not available when Paranoid is set >2.
(from the documentation)
Requirements for x86_64, Power, and ARM SBSA Targets on Linux 31
Use of Linux Perf : To collect thread scheduling data and IP (instruction pointer) samples, the Perf paranoid level on the target system must be 2 or less. Use the following command to check:

cat /proc/sys/kernel/perf_event_paranoid

If the output is >2, then do the following to temporarily adjust the paranoid level (note that this has to be done after each reboot):

sudo sh -c 'echo 2 >/proc/sys/kernel/perf_event_paranoid'

To make the change permanent, use the following command:

sudo sh -c ‘echo kernel.perf_event_paranoid=2 > /etc/sysctl.d/local.conf’

如果无法修改,则直接将文件数值修改为2(原始值为4):

sudo nano /proc/sys/kernel/perf_event_paranoid

永久解决:

# 1. 创建文件
touch /etc/sysctl.d/local.conf
# 2. 编辑文件
sudo nano /etc/sysctl.d/local.conf
# 在local.conf添加一下命令:kernel.perf_event_paranoid = 2
# 3.添加完成后命令行执行:
sudo sysctl -p   #  加载/启用配置文件

问题2

解决办法

cd /etc/modprobe.d
sudo touch allowgpu.conf
# 文件内添加
options nvidia NVreg_RestrictProfilingToAdminUsers=0

# 重启
sudo reboot

你可能感兴趣的:(ubuntu,cuda,Nsight,Systems)