AAnight 2021-03-14 19:19 采纳率: 50%
浏览 732
已采纳

tensorflow是否成功在GPU上运行?

PS C:\Users\11473\Desktop\Siamese-tf2-master> conda activate tensorflow2
PS C:\Users\11473\Desktop\Siamese-tf2-master> & D:/anaconda/envs/tensorflow2/python.exe c:/Users/11473/Desktop/Siamese-tf2-master/predict.py
2021-03-14 19:06:56.461534: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2021-03-14 19:06:56.461690: 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.
2021-03-14 19:06:58.062743: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2021-03-14 19:06:58.496672: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: 
pciBusID: 0000:01:00.0 name: GeForce GTX 1050 computeCapability: 6.1
coreClock: 1.493GHz coreCount: 5 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 104.43GiB/s
2021-03-14 19:06:58.497819: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2021-03-14 19:06:58.498755: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cublas64_10.dll'; dlerror: cublas64_10.dll not found
2021-03-14 19:06:58.499699: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll 
not found
2021-03-14 19:06:58.500584: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2021-03-14 19:06:58.501525: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
2021-03-14 19:06:58.503044: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusparse64_10.dll'; dlerror: cusparse64_10.dll not found
2021-03-14 19:06:58.511421: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll
2021-03-14 19:06:58.511749: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1598] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2021-03-14 19:06:58.547282: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: 
AVX2
2021-03-14 19:06:58.562199: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x10cdb4621f0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-03-14 19:06:58.563092: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2021-03-14 19:06:58.563646: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-03-14 19:06:58.563915: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108]
model_data/Omniglot_vgg.h5 model, anchors, and classes loaded.

请问各位大佬,这种情况是不是GPU没有参与到训练中?要如何解决呢?

  • 写回答

1条回答 默认 最新

  • stdcoutzrh 2021-03-15 08:39
    关注

    你好,cudart64_101.dll可以去下面的链接下载,https://www.dll-files.com/download/1d7955354884a9058e89bb8ea34415c9/cudart64_101.dll.html?c=aUlSRnQybm1PVERtdHE3ZTdOc1lwZz09,下载好后放到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin目录下,同时你会发现将该目录里有cublas64_100.dll ,cufft64_100.dll ,curand64_100.dll ,cusolver64_100.dll,cusparse64_100.dll,与上面的错误信息缺少的dll名字只多了个0,就在该目录下把它们复制副本,然后修改副本的文件名到对应的名字 cublas64_10.dll cufft64_10.dll curand64_10.dll cusolver64_10.dll cusparse64_10.dll就可以了。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 求多普勒频移瞬时表达式
  • ¥15 VS2022 C++的相关代码问题咨询
  • ¥15 如果要做一个老年人平板有哪些需求
  • ¥15 k8s生产配置推荐配置及部署方案
  • ¥15 matlab提取运动物体的坐标
  • ¥15 人大金仓下载,有人知道怎么解决吗
  • ¥15 一个小问题,本人刚入门,哪位可以help
  • ¥30 python安卓开发
  • ¥15 使用R语言GD包一直不出结果
  • ¥15 计算机微处理器与接口技术相关问题,求解答图片的这个问题,有多少个端口,端口地址和解答问题的方法和思路,不要AI作答