我已在Windows 10上安装了tensorflow-gpu 2.0alpha0、cudatoolkit 10.0.130和cudnn 7.5。
TensorFlow 2.0与CPU的兼容性良好,但在使用GPU时会遇到错误。
错误信息如下:
2019-04-02 23:47:38.646661: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2019-04-02 23:47:38.666653: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2019-04-02 23:47:38.666842: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
我认为主要问题是“无法打开库‘nvcuda.dll’”。
然而,我已经安装了最新的NVIDIA驱动程序(版本419.67),并且可以在C:\Windows\System32\nvcuda.dll中找到'nvcuda.dll'。