cuda12+版本==WARNING== Could not deploy stock section解决办法

cuda12+版本==WARNING== Could not deploy stock section解决办法

前置条件

如果是在wsl2当中进行使用,需要现在NVIDIA控制面板当中,允许所有用户访问性能计数器。

问题描述

在学习cuda-training-series期间,遇到了这样的问题:

使用nv-nsight-cu-cli进行profiling进行分析,遇到如下输出:

MemoryWorkloadAnalysis ./reductions
==WARNING== Could not deploy stock section files to "/home/xym/Documents/NVIDIA Nsight Compute/2021.3.1/Sections".
Set the HOME environment variable to a writable directory.
==WARNING== Using "/usr/lib/x86_64-linux-gnu/nsight-compute/target/linux-desktop-glibc_2_11_3-x64/../../sections" instead.
==WARNING== See https://docs.nvidia.com/nsight-compute/ProfilingGuide/index.html#faq.
==WARNING== Failed to add default section search path /usr/lib/x86_64-linux-gnu/nsight-compute/target/linux-desktop-glibc_2_11_3-x64/../../sections.
==ERROR== Failed to add rules search path /usr/lib/x86_64-linux-gnu/nsight-compute/target/linux-desktop-glibc_2_11_3-x64/../../sections.

按照网上的教程进行重置:

ncu --section-folder-restore

虽然重置之后正常输出,显示deploy目录被重置为2025.xxx的一个目录,但是再次运行上述命令,依然无法deploy

解决办法

检查ncunv-nsight-cu-cli的版本,发现一个是2025,一个才2021,检索发现后者已经过期,其功能已经集成在ncu当中了。

posted @ 2025-03-14 19:36  Gold_stein  阅读(121)  评论(1)    收藏  举报