2025-10-29 22:20:49.651661: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2025-10-29 22:20:49.716044: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1532] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 5527 MB memory:  -> device: 0, name: NVIDIA GeForce RTX 4060 Ti, pci bus id: 0000:01:00.0, compute capability: 8.9
2025-10-29 22:21:12.093557: I tensorflow/stream_executor/cuda/cuda_dnn.cc:384] Loaded cuDNN version 8600
Could not locate zlibwapi.dll. Please make sure it is in your library path!

可以看到程序已经分配了已有gpu,但是一直运行阻塞,查看日志发现 Could not locate zlibwapi.dll. 

解决办法:
在nvidia下载“zlib123dllx64”文件夹,解压后将“zlibwapi.dll”复制到bin目录

your path to/NVIDIA GPU Computing Toolkit/CUDA/v11.X/bin/zlibwapi.dll

参考地址:
https://forums.developer.nvidia.com/t/could-not-load-library-cudnn-cnn-infer64-8-dll-error-code-193/218437/16

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐