【发布时间】:2016-05-06 23:50:25
【问题描述】:
从支持 GPU 的源代码编译 tensorflow 时,我得到:
bazel build -c opt --config=cuda --verbose_failures //tensorflow/cc:tutorials_example_trainer
WARNING: Output base '/auto/homes/.cache/bazel/_bazel_/bd4752ce1a89280ab0ba7ef21866f7b1' is on NFS. This may lead to surprising failures and undetermined behavior.
WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.io/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.
INFO: Found 1 target...
INFO: From Linking tensorflow/cc/tutorials_example_trainer:
bazel-out/local_linux-opt/bin/tensorflow/core/libkernels.lo(constant_op.o): In function `tensorflow::ZerosLikeOp<Eigen::GpuDevice, bool>::Compute(tensorflow::OpKernelContext*)':
constant_op.cc:(.text._ZN10tensorflow11ZerosLikeOpIN5Eigen9GpuDeviceEbE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow11ZerosLikeOpIN5Eigen9GpuDeviceEbE7ComputeEPNS_15OpKernelContextE]+0x181): undefined reference to `tensorflow::functor::FillFunctor<Eigen::GpuDevice, bool>::operator()(Eigen::GpuDevice const&, Eigen::TensorMap<Eigen::Tensor<bool, 1, 1, long>, 16>, Eigen::TensorMap<Eigen::TensorFixedSize<bool const, Eigen::Sizes<>, 1, long>, 16>)'
collect2: error: ld returned 1 exit status
我尝试了不同的 bazel 版本(0.1.1 和 0.1.4),但我得到了同样的错误。有什么想法吗?
【问题讨论】:
标签: tensorflow