运行带GPU支持的TF例子:MNIST,中间发生PyThon执行非法指令错误,同时运行窗口报告:Couldn't open CUDA library cupti64_80.dll
经古狗后发现问题原因居然是CUDA的cupti64_80.dll的路径没有加入PATH。。。
“
I have encountered this problem before. When you use CUDA 8.0,the file cupti64_80.dll lies in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\extras\CUPTI\libx64. I just fixed the problem by copying the dll into C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin, and the file cupti.lib in the same location into C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64. And it works!
”