1. 程式人生 > >Couldn't open CUDA library cupti64_80.dll 如何解決?

Couldn't open CUDA library cupti64_80.dll 如何解決?

tensorflow在執行時的錯誤:
... Couldn't open CUDA library cupti64_80.dll
... Non-OK-status: status_ status: Failed precondition: could not dlopen DSO: cupti64_80.dll; dlerror: cupti64_80.dll not found

解決方法:

先檢視CUDA資料夾下有沒有cupti64_80.dll,一般是C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\extras\CUPTI\libx64,你看,發現一隻你要的東西!

然後檢視環境變數,發現那個檔案所在的資料夾沒有在環境變數中,但是CUDA8.0/bin卻在這裡。

再來開啟CUDA8.0/bin:

所以,把cupit64_80.dll複製到CUDA8.0/bin就好了!