CUDA Toolkit 9.0、Windows 10、GTX 1060 和 NVS 315、385.54 驱动程序版本。
Nvidia Visual Profiler 总是无法进行分析,返回以下两条警告消息:
“警告:此版本的 nvprof 不支持底层设备,GPU 分析已跳过”
“警告:未分析任何 CUDA 应用程序,正在退出”
请注意,我的机器安装了两个 GPU。物理移除 NVS 315 可解决问题;可视化探查器工作。通过设备管理器禁用 NVS 315 也可以。我只想分析 GTX 1060,但我想在安装 NVS 315 的情况下这样做,而不是禁用。
使用 nvprof 并指定“--devices”选项有效:
C:\>nvprof --devices 0 bandwidthTest.exe
然而
C:\>nvprof --devices 1 bandwidthTest.exe
======== Warning: This version of nvprof doesn't support the underlying device, GPU profiling skipped
从 nvprof 导出结果,然后在 Visual Profiler 中打开工作:
C:\>nvprof --devices 0 --export-profile results.nvvp bandwidthTest.exe
但我很懒,不想在每次配置文件时都重复一百次。
因此,NVS 315 似乎有些不兼容的地方。此外,为 Visual Profiler (nvvp) 指定类似“--devices 0”的内容似乎是一种解决方案。要是我知道怎么做就好了。