0

I am following this tutorial to install GPU-enabled TensorFlow that is compatible with CUDA Compute Capability 3.0.

I installed Java-JDK8, Bazel 0.1.0, TensorFlow 0.6.0, and changed the configurations to run on CUDA Compute Capability 3.0. Everything is good so far.

But when I enter this command:

$HOME/bin/bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer

I see this output:

Extracting Bazel installation...
.....
ERROR: /home/me/tensorflow/tensorflow/core/BUILD:1: Extension file not found: 'google/protobuf/protobuf.bzl'.
ERROR: /home/me/tensorflow/tensorflow/cc/BUILD:65:1: error loading package 'tensorflow/core': Extension file not found: 'google/protobuf/protobuf.bzl' and referenced by '//tensorflow/cc:tutorials_example_trainer'.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 1.006s

Any advice?

M.Y. Babt
  • 2,733
  • 7
  • 27
  • 49
  • Possible duplicate of [Distributed tensorflow fails with "BUILD file not found on package"](http://stackoverflow.com/questions/36070588/distributed-tensorflow-fails-with-build-file-not-found-on-package) – mrry Mar 24 '16 at 14:35

2 Answers2

1

The problem is fixed by running this command:

$ git clone -b 0.6.0 –recurse-submodules https://github.com/tensorflow/tensorflow.git

The error message I received is documented here. Pulling all submodules fixed the problem.

M.Y. Babt
  • 2,733
  • 7
  • 27
  • 49
0

I've had issues with the command above, -recurse-submodules does not exist

Try this:

$ git clone --recursive git@github.com:tensorflow/tensorflow.git

Mihai Serban
  • 241
  • 3
  • 10
  • Hi, "-recurse-submodules" should be "--recurse-submodules" instead. Note the two "-"s at the beginning :-) – M.Y. Babt Mar 28 '16 at 14:04