2

我正在尝试使用nvprof分析基于 TensorFlow 的代码。我为此使用以下命令

nvprof  python ass2.py

该程序成功运行,但最后显示以下错误。

==49791== Profiling application: python ass2.py
======== Error: Unable to import nvprof generated profile data.
4

2 回答 2

8

使用/usr/local/cuda/bin/nvprof xxx,也许你已经安装了两个版本的 cuda

或者你可以添加/usr/local/cuda/binPATH环境中。

vim ~/.bashrc
export PATH=$PATH:/usr/local/cuda/bin
source ~/.bashrc
于 2017-03-17T04:19:00.707 回答
0

我不知道确切的原因,但使用 nvprof 的完整路径/usr/bin/nvprof解决了这个问题。

于 2017-02-18T03:28:42.583 回答