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

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就可以了。

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

报告相同问题?

悬赏问题

  • ¥60 如何把照片修复成原始拍摄图
  • ¥80 Exited too quickly (process log may have details)
  • ¥15 爬知乎登录之后内容加载不出来
  • ¥15 怎么用protues测量通频带
  • ¥15 zepelin使用sparkInterpreter 异常
  • ¥15 paho mqtt 接收不到消息
  • ¥15 函数r关于两个分量y,z方向上的图像,分开画r随y的图像,r随z的图像
  • ¥15 如何用Matlab求Pearcey函数的数值积分?
  • ¥15 一个简单的函数定义问题,输出结果是相反的,怎么回事呢?
  • ¥15 页面加载报错,不知道怎么处理