我正在使用bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer
TensorFlow 'installing from sources' instructions 的指示使用 Bazel 构建 TensorFlow 。
我收到以下错误:
ERROR: /home/ubuntu/tensorflow/tensorflow/stream_executor/BUILD:5:1: C++ compilation of rule '//tensorflow/stream_executor:stream_e
xecutor' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command third_party/gpus/crosstool/clang/bin/crosstool
_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-fr
ee-nonheap-object ... (remaining 87 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exite
d with status 1.
tensorflow/stream_executor/cuda/cuda_dnn.cc: In function 'cudnnConvolutionFwdAlgo_t perftools::gputools::cuda::{anonymous}::ToConvF
orwardAlgo(perftools::gputools::dnn::AlgorithmType)':
tensorflow/stream_executor/cuda/cuda_dnn.cc:269:10: error: 'CUDNN_CONVOLUTION_FWD_ALGO_FFT' was not declared in this scope
case CUDNN_CONVOLUTION_FWD_ALGO_FFT:
...
堆栈:运行 Ubuntu 14.04.2 的 EC2 g2.8xlarge 机器。Bazel 版本 0.1.5(安装 w/ bazel-0.1.5-jdk7-installer-linux-x86_64.sh
)。
我试过 Bazel 0.1.4 和 0.2.3,我得到了同样的错误。