【问题标题】:How to specify nvprof "devices" option for Nvidia Visual Profiler?如何为 Nvidia Visual Profiler 指定 nvprof“设备”选项?
【发布时间】:2018-04-17 12:19:59
【问题描述】:

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”的内容似乎是一种解决方案。要是我知道怎么做就好了。

【问题讨论】:

    标签: cuda nvprof nvvp


    【解决方案1】:

    以下是一种解决方法。更好的解决方案是 Visual Profiler (nvvp) 的一个选项。

    Nvidia 控制面板(版本 8.1.970.0), 左面板“工作站”任务, “管理 GPU 利用率”

    此处仅列出 NVS 315。在“使用模式”下,选择“专用于图形任务”。

    我现在可以使用 Visual Profiler 进行分析。

    【讨论】:

    • veraj @nvidia 开发者论坛建议在启动 Visual Profiler 之前设置 Windows 环境变量:set CUDA_VISIBLE_DEVICES=0
    猜你喜欢
    • 2014-11-26
    • 1970-01-01
    • 2016-04-28
    • 2016-06-23
    • 2014-07-31
    • 2017-09-30
    • 1970-01-01
    • 2021-12-04
    • 1970-01-01
    相关资源
    最近更新 更多