解决Nsight Systems错误

编程入门 行业动态 更新时间:2024-10-09 03:18:47

解决Nsight Systems<a href=https://www.elefans.com/category/jswz/34/1771449.html style=错误"/>

解决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

更多推荐

解决Nsight Systems错误

本文发布于:2023-11-16 11:31:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619535.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Nsight   Systems

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!