我在 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)
我认为主要问题是“Could not dlopen library 'nvcuda.dll'”。
但是,我已经安装了最新的 NVIDIA 驱动程序(版本 419.67),并且可以在 C:\Windows\System32\nvcuda.dll 中找到“nvcuda.dll”。