6

Ubuntu 14.04、CUDA バージョン 7.5.18、tensorflow の夜間ビルド

テンソルフローで操作を実行しているtf.nn.max_pool()ときに、次のエラーが発生しました。

E tensorflow/stream_executor/cuda/cuda_dnn.cc:286] 読み込まれた cudnn ライブラリ: 5005 ですが、ソースは 4007 に対してコンパイルされました。バイナリ インストールを使用している場合は、一致するように cudnn ライブラリをアップグレードしてください。ソースからビルドする場合は、ロードされたライブラリがコンパイル構成中に指定したバージョンと一致することを確認してください。

W tensorflow/stream_executor/stream.cc:577] DNN サポートなしで StreamExecutor を使用して DNN 操作を実行しようとしています

トレースバック (最新の呼び出しが最後):

...

tensorflow のコンパイル構成で cudnn バージョンを指定するにはどうすればよいですか?

4

4 に答える 4

2

TensorFlow ソース コードのディレクトリに移動し、構成ファイルを実行します/.configure

TensorFlow ドキュメントの例を次に示します。

$ ./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
于 2016-06-06T17:08:06.827 に答える