我已经在Python3.7venv上安装了tensorflow-gpu 1.15.2。我没有安装tensorflow包。
我安装了CUDA9.0(因为我正在使用TensorFlow1.15)和相应的CUDA9.0的cuDNN。当我运行tensorflow学习算法时,它使用的是我的CPU而不是GPU。我跑了一下:
from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())它检测到我的GPU (1660Ti),但它显示我缺少大量软件包:
2020-04-25 22:02:12.536321: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2020-04-25 22:02:15.175536: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2020-04-25 22:02:15.188183: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-04-25 22:02:15.234070: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties:
name: GeForce GTX 1660 Ti major: 7 minor: 5 memoryClockRate(GHz): 1.875
pciBusID: 0000:27:00.0
2020-04-25 22:02:15.239530: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found
2020-04-25 22:02:15.242919: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cublas64_100.dll'; dlerror: cublas64_100.dll not found
2020-04-25 22:02:15.251483: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cufft64_100.dll'; dlerror: cufft64_100.dll not found
2020-04-25 22:02:15.255358: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'curand64_100.dll'; dlerror: curand64_100.dll not found
2020-04-25 22:02:15.266446: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusolver64_100.dll'; dlerror: cusolver64_100.dll not found
ired libraries for your platform.
Skipping registering GPU devices...
2020-04-25 22:02:15.719511: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-04-25 22:02:15.721901: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0
2020-04-25 22:02:15.723610: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 524594082372294943
]我在我的电脑上搜索了一下,确实找不到那些dll文件。
当我安装CUDA时,如果我尝试重新安装,它会显示“图形驱动程序找不到兼容的图形硬件”。我忽略了这个错误,仍然安装了它。我的程序文件中的相关CUDA目录在那里。但命令提示符中的nvcc -V确认已安装CUDA。
快速谷歌似乎建议CUDA版本的10+有这些库,但安装后,我没有看到任何区别。
我在哪里可以找到这些丢失的dlls?我是不是安装得不正确?
发布于 2020-04-26 05:11:56
哦,似乎100指的是CUDA 10.0,所以CUDA 9.0有*90.dll文件,而CUDA 10.2有*102.dll文件。
真的很烦人,需要这么多不同的CUDA安装!
https://stackoverflow.com/questions/61432612
复制相似问题