gpt4 book ai didi

tensorflow - cudnn 在 TensorFlow 中编译配置

转载 作者:行者123 更新时间:2023-12-03 12:39:54 24 4
gpt4 key购买 nike

Ubuntu 14.04,CUDA 版本 7.5.18,每晚构建 tensorflow

在运行 tf.nn.max_pool() 时在 tensorflow 中操作,出现以下错误:

E tensorflow/stream_executor/cuda/cuda_dnn.cc:286] Loaded cudnn library: 5005 but source was compiled against 4007. If using a binary install, upgrade your cudnn library to match. If building from sources, make sure the library loaded matches the version you specified during compile configuration.

W tensorflow/stream_executor/stream.cc:577] attempting to perform DNN operation using StreamExecutor without DNN support

Traceback (most recent call last):

...



如何在 tensorflow 的编译配置中指定我的 cudnn 版本?

最佳答案

进入TensorFlow源码目录,然后执行配置文件:/.configure .

以下是来自 TensorFlow documentation 的示例:

$ ./configure
Please specify the location of python. [Default is /usr/bin/python]:
Do you wish to build TensorFlow with GPU support? [y/N] y
GPU support will be enabled for TensorFlow

Please specify which gcc nvcc should use as the host compiler. [Default is
/usr/bin/gcc]: /usr/bin/gcc-4.9

Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave
empty to use system default]: 7.5

Please specify the location where CUDA 7.5 toolkit is installed. Refer to
README.md for more details. [default is: /usr/local/cuda]: /usr/local/cuda

Please specify the Cudnn version you want to use. [Leave empty to use system
default]: 4.0.4

Please specify the location where the cuDNN 4.0.4 library is installed. Refer to
README.md for more details. [default is: /usr/local/cuda]: /usr/local/cudnn-r4-rc/

Please specify a list of comma-separated Cuda compute capabilities you want to
build with. You can find the compute capability of your device at:
https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your
build time and binary size. [Default is: \"3.5,5.2\"]: 3.5

Setting up Cuda include
Setting up Cuda lib64
Setting up Cuda bin
Setting up Cuda nvvm
Setting up CUPTI include
Setting up CUPTI lib64
Configuration finished

关于tensorflow - cudnn 在 TensorFlow 中编译配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37663064/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com