【Tensorflow】在gpu环境运行tensorflow模型报错Could not locate zlibwapi.dll.
·
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
更多推荐
所有评论(0)