Unable to import nvprof generated profile data

扶醉桌前 提交于 2019-12-06 11:21:31

问题


I am trying to profile a TensorFlow based code using nvprof. I am using following command for this

nvprof  python ass2.py

The program runs successfully but at the end it shows following error.

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

回答1:


use /usr/local/cuda/bin/nvprof xxx, maybe you have install two versions of cuda

OR you can add /usr/local/cuda/bin to PATH enviroment.

vim ~/.bashrc
export PATH=$PATH:/usr/local/cuda/bin
source ~/.bashrc



回答2:


I don't know the exact reason but using the full path of nvprof /usr/bin/nvprof solved the problem.



来源:https://stackoverflow.com/questions/42124029/unable-to-import-nvprof-generated-profile-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!