问题
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