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

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

报告相同问题?

悬赏问题

  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。
  • ¥20 CST怎么把天线放在座椅环境中并仿真
  • ¥15 任务A:大数据平台搭建(容器环境)怎么做呢?