使用时报错:
Status: TargetProfilingFailed

问题1:Linux Kernel Paranoid Level 太高
参考:
- https://forums.developer.nvidia.com/t/error-in-sampling-pytroch-profile-with-nsys-and-dlprof/202577/3
- https://docs.nvidia.com/nsight-systems/InstallationGuide/index.html#requirements-for-x86-64-power-and-arm-sbsa-targets-on-linux
首先查看自己机器的状态:

发现Linux Kernel Paranoid Level = 3, 需要改成2
执行下面命令临时修改:
sudo sh -c 'echo 2 >/proc/sys/kernel/perf_event_paranoid'
然后发现status状态对了

最低0.47元/天 解锁文章
406

被折叠的 条评论
为什么被折叠?



