AAnight
AAnight
采纳率50%
2021-03-14 19:19 阅读 238

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条回答 默认 最新

  • 已采纳
    PecoHe 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就可以了。

    点赞 评论 复制链接分享

相关推荐