Coder Social home page Coder Social logo

installtensorflowtx1's Introduction

installTensorFlowTX1

September 17, 2017 JetsonHacks

Install TensorFlow v1.3 on NVIDIA Jetson TX1 Development Kit

Jetson TX1 is flashed with JetPack 3.1 which installs:

  • L4T 28.1 an Ubuntu 16.04 64-bit variant (aarch64)
  • CUDA 8.0
  • cuDNN 6.0

Pre-built installation

If you are only interested in installing Tensorflow on the TX1, not building from source, pre-built wheel files are available here: https://github.com/jetsonhacks/installTensorFlowJetsonTX

If you are interested in building from source, read on.

Preparation

Before installing TensorFlow, a swap file should be created (minimum of 8GB recommended). The Jetson TX1 does not have enough physical memory to compile TensorFlow.

Note: L4T 28.1 does not have the swap file option selected in the stock kernel, so a custom kernel must be used with swap enabled. The option is 'Support for paging of anonymous memory (swap)'. The kernel configuration symbols are CONFIG_SWAP and SWAP.

The eMMC does not have enough room for a properly sized swap file, the swap file should be located on a different device. A SATA drive is probably the fastest, followed by a USB drive then SD Card. The swap file is not needed after the build. Also, the swap file should be over 4GB.

There is a convenience script for building a swap file. For example, to build a 8GB swapfile:

$ ./createSwapfile.sh -d [file location] -s 8

After TensorFlow has finished building, the swap file is no longer needed and may be removed.

These scripts support either builds for Python 2.7 or Python 3.5. TensorFlow should be built in the following order:

For Python 2.7

installPrerequisites.sh

Installs Java and other dependencies needed. Also builds Bazel version 0.5.2.

cloneTensorFlow.sh

Git clones v1.3.0 from the TensorFlow repository and patches the source code for aarch64

setTensorFlowEV.sh

Sets up the TensorFlow environment variables. This script will ask for the default python library path. There are many settings to chose from, the script picks the usual suspects. Uses python 2.7.

For Python 3.5

installPrerequisitesPy3.sh

Installs Java and other dependencies needed. Also builds Bazel version 0.5.2.

cloneTensorFlow.sh

Git clones v1.3.0 from the TensorFlow repository and patches the source code for aarch64

setTensorFlowEVPy3.sh

Sets up the TensorFlow environment variables. This script will ask for the default python library path. There are many settings to chose from, the script picks the usual suspects. Uses python 3.5.

Build TensorFlow

Once the prerequisites have been installed and the environment configured, it is time to build TensorFlow itself.

buildTensorFlow.sh

Builds TensorFlow.

packageTensorFlow.sh

Once TensorFlow has finished building, this script may be used to create a 'wheel' file, a package for installing with Python. The wheel file will be in the $HOME directory.

Install wheel file

For Python 2.X

$ pip install $HOME/wheel file

For Python 3.X

$ pip3 install $HOME/wheel file

Notes

This TensorFlow installation procedure was derived from these discussion threads:

Release Notes

September 2017

  • L4T 28.1 (JetPack 3.1)
  • TensorFlow 1.3
  • CUDA 8.0
  • cuDNN 6.0.12

December 2016

  • Initial Release
  • L4T 24.2.1
  • TensorFlow 0.11
  • CUDA 8.0
  • cuDNN 5.1.5

License

MIT License

Copyright (c) 2017 Jetsonhacks

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

installtensorflowtx1's People

Contributors

jetsonhacks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

installtensorflowtx1's Issues

method for new tensorflow

Really appreciate your efforts and was wondering if there will be some methods for latest tensor flow?

Does the scripts support installing tensorflow r1.0?

Thank you for providing these convenient scripts! Can I use these scripts to install tensorflow r1.0?

More specifically, In the script cloneTensorflow.sh, you have git checkout r0.11, can I change this to git checkout r1.0 and run the rest of the scripts to install tensorflow r1.0?

How to uninstall the dependencies and build tools?

This is not really an issue. They take up memory and after installing dependencies for building TF, from 5.2 GBs the memory became 3.2GBs. I'm in the building step now, which I assume will take a more memory. I have my swap file in an SSD. Now I'm thinking if I should move the whole file system to the SSD. But anyways a good uninstallation script for removing everything that tf is not dependent upon after installation would be a "nice to have"

ERROR: crosstool_wrapper_driver_is_not_gcc failed: error executing command

When I use sudo ./buildTensorFlow.sh , it comes out with this error. I have try to change bazel version from 0.5.2 to 0.5.3 to 0.5.4 version, this error cannot be fixed.

INFO: From Compiling tensorflow/contrib/boosted_trees/lib/utils/batch_features.cc:
In file included from ./tensorflow/core/platform/default/logging.h:24:0,
from ./tensorflow/core/platform/logging.h:25,
from ./tensorflow/contrib/boosted_trees/lib/utils/optional_value.h:19,
from ./tensorflow/contrib/boosted_trees/lib/utils/example.h:21,
from ./tensorflow/contrib/boosted_trees/lib/utils/examples_iterable.h:21,
from ./tensorflow/contrib/boosted_trees/lib/utils/batch_features.h:19,
from tensorflow/contrib/boosted_trees/lib/utils/batch_features.cc:16:
./tensorflow/core/platform/default/logging.h: In instantiation of 'std::__cxx11::string* tensorflow::internal::Check_LTImpl(const T1&, const T2&, const char*) [with T1 = long long int; T2 = long unsigned int; std::__cxx11::string = std::__cxx11::basic_string]':
./tensorflow/core/util/sparse/dim_comparator.h:56:7: required from here
./tensorflow/core/platform/default/logging.h:231:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
TF_DEFINE_CHECK_OP_IMPL(Check_LT, < )
^
./tensorflow/core/platform/macros.h:76:29: note: in definition of macro 'TF_PREDICT_TRUE'
#define TF_PREDICT_TRUE(x) (x)
^
./tensorflow/core/platform/default/logging.h:231:1: note: in expansion of macro 'TF_DEFINE_CHECK_OP_IMPL'
TF_DEFINE_CHECK_OP_IMPL(Check_LT, < )
^

ERROR: /home/ubuntu/tensorflow/tensorflow/stream_executor/BUILD:39:1: C++ compilation of rule '//tensorflow/stream_executor:cuda_platform' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command

(cd /home/ubuntu/.cache/bazel/bazel_root/ad1e09741bb4109fbc70ef8216b59ee2/execroot/org_tensorflow &&
exec env -
CUDA_TOOLKIT_PATH=/usr/local/cuda
CUDNN_INSTALL_PATH=/usr/lib/aarch64-linux-gnu
GCC_HOST_COMPILER_PATH=/usr/bin/gcc
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
PWD=/proc/self/cwd
PYTHON_BIN_PATH=/usr/bin/python3
PYTHON_LIB_PATH=/usr/local/lib/python3.5/dist-packages
TF_CUDA_CLANG=0
TF_CUDA_COMPUTE_CAPABILITIES=5.3
TF_CUDA_VERSION=8.0
TF_CUDNN_VERSION=5
TF_NEED_CUDA=1
TF_NEED_OPENCL=0
external/local_config_cuda/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-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -D_FORCE_INLINES -D_MWAITXINTRIN_H_INCLUDED '-std=c++11' -MD -MF bazel-out/local_linux-py3-opt/bin/tensorflow/stream_executor/objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_blas.pic.d '-frandom-seed=bazel-out/local_linux-py3-opt/bin/tensorflow/stream_executor/objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_blas.pic.o' -fPIC -DEIGEN_MPL2_ONLY -DSNAPPY -iquote . -iquote bazel-out/local_linux-py3-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/local_linux-py3-opt/genfiles/external/bazel_tools -iquote external/protobuf -iquote bazel-out/local_linux-py3-opt/genfiles/external/protobuf -iquote external/eigen_archive -iquote bazel-out/local_linux-py3-opt/genfiles/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/local_linux-py3-opt/genfiles/external/local_config_sycl -iquote external/gif_archive -iquote bazel-out/local_linux-py3-opt/genfiles/external/gif_archive -iquote external/jpeg -iquote bazel-out/local_linux-py3-opt/genfiles/external/jpeg -iquote external/com_googlesource_code_re2 -iquote bazel-out/local_linux-py3-opt/genfiles/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/local_linux-py3-opt/genfiles/external/farmhash_archive -iquote external/fft2d -iquote bazel-out/local_linux-py3-opt/genfiles/external/fft2d -iquote external/highwayhash -iquote bazel-out/local_linux-py3-opt/genfiles/external/highwayhash -iquote external/png_archive -iquote bazel-out/local_linux-py3-opt/genfiles/external/png_archive -iquote external/zlib_archive -iquote bazel-out/local_linux-py3-opt/genfiles/external/zlib_archive -iquote external/snappy -iquote bazel-out/local_linux-py3-opt/genfiles/external/snappy -iquote external/local_config_cuda -iquote bazel-out/local_linux-py3-opt/genfiles/external/local_config_cuda -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/protobuf/src -isystem bazel-out/local_linux-py3-opt/genfiles/external/protobuf/src -isystem external/eigen_archive -isystem bazel-out/local_linux-py3-opt/genfiles/external/eigen_archive -isystem external/gif_archive/lib -isystem bazel-out/local_linux-py3-opt/genfiles/external/gif_archive/lib -isystem external/farmhash_archive/src -isystem bazel-out/local_linux-py3-opt/genfiles/external/farmhash_archive/src -isystem external/png_archive -isystem bazel-out/local_linux-py3-opt/genfiles/external/png_archive -isystem external/zlib_archive -isystem bazel-out/local_linux-py3-opt/genfiles/external/zlib_archive -isystem external/local_config_cuda/cuda -isystem bazel-out/local_linux-py3-opt/genfiles/external/local_config_cuda/cuda -isystem external/local_config_cuda/cuda/cuda/include -isystem bazel-out/local_linux-py3-opt/genfiles/external/local_config_cuda/cuda/cuda/include -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE="redacted"' '-D__TIMESTAMP
_="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers -c tensorflow/stream_executor/cuda/cuda_blas.cc -o bazel-out/local_linux-py3-opt/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_blas.pic.o).
tensorflow/stream_executor/cuda/cuda_blas.cc: In member function 'virtual bool perftools::gputools::cuda::CUDABlas::GetBlasGemmAlgorithms(std::vector*)':

tensorflow/stream_executor/cuda/cuda_blas.cc:1927:9: error: 'CUBLAS_GEMM_ALGO5' was not declared in this scope

     CUBLAS_GEMM_ALGO5, CUBLAS_GEMM_ALGO6, CUBLAS_GEMM_ALGO7}) {
     ^

tensorflow/stream_executor/cuda/cuda_blas.cc:1927:28: error: 'CUBLAS_GEMM_ALGO6' was not declared in this scope

     CUBLAS_GEMM_ALGO5, CUBLAS_GEMM_ALGO6, CUBLAS_GEMM_ALGO7}) {
                        ^

tensorflow/stream_executor/cuda/cuda_blas.cc:1927:47: error: 'CUBLAS_GEMM_ALGO7' was not declared in this scope

     CUBLAS_GEMM_ALGO5, CUBLAS_GEMM_ALGO6, CUBLAS_GEMM_ALGO7}) {
                                           ^

tensorflow/stream_executor/cuda/cuda_blas.cc:1927:64: error: unable to deduce 'std::initializer_list<_Tp>&&' from '{CUBLAS_GEMM_DFALT, CUBLAS_GEMM_ALGO0, CUBLAS_GEMM_ALGO1, CUBLAS_GEMM_ALGO2, CUBLAS_GEMM_ALGO3, CUBLAS_GEMM_ALGO4, , , }'

     CUBLAS_GEMM_ALGO5, CUBLAS_GEMM_ALGO6, CUBLAS_GEMM_ALGO7}) {
                                                            ^

tensorflow/stream_executor/cuda/cuda_blas.cc: In function 'cublasOperation_t perftools::gputools::cuda::{anonymous}::CUDABlasTranspose(perftools::gputools::blas::Transpose)':
tensorflow/stream_executor/cuda/cuda_blas.cc:411:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
tensorflow/stream_executor/cuda/cuda_blas.cc: In function 'cublasFillMode_t perftools::gputools::cuda::{anonymous}::CUDABlasUpperLower(perftools::gputools::blas::UpperLower)':
tensorflow/stream_executor/cuda/cuda_blas.cc:422:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
tensorflow/stream_executor/cuda/cuda_blas.cc: In function 'cublasDiagType_t perftools::gputools::cuda::{anonymous}::CUDABlasDiagonal(perftools::gputools::blas::Diagonal)':
tensorflow/stream_executor/cuda/cuda_blas.cc:433:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
tensorflow/stream_executor/cuda/cuda_blas.cc: In function 'cudaDataType_t perftools::gputools::cuda::{anonymous}::CUDAComputationType(perftools::gputools::blas::ComputationType)':
tensorflow/stream_executor/cuda/cuda_blas.cc:527:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
tensorflow/stream_executor/cuda/cuda_blas.cc: In function 'cublasSideMode_t perftools::gputools::cuda::{anonymous}::CUDABlasSide(perftools::gputools::blas::Side)':
tensorflow/stream_executor/cuda/cuda_blas.cc:444:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 437.153s, Critical Path: 53.12s

Compilation Error while building TensorFlow: ./buildTensorFlow.sh step

I get the following while building tensorflow:

       ^

ERROR: /home/ubuntu/tensorflow/tensorflow/core/kernels/BUILD:5334:1: C++ compilation of rule '//tensorflow/core/kernels:padded_batch_dataset_op' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /home/ubuntu/.cache/bazel/bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/execroot/org_tensorflow &&
exec env -
CUDA_TOOLKIT_PATH=/usr/local/cuda
CUDNN_INSTALL_PATH=/usr/lib/aarch64-linux-gnu
GCC_HOST_COMPILER_PATH=/usr/bin/gcc
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=/proc/self/cwd
PYTHON_BIN_PATH=/usr/bin/python
PYTHON_LIB_PATH=/usr/local/lib/python2.7/dist-packages
TF_CUDA_CLANG=0
TF_CUDA_COMPUTE_CAPABILITIES=5.3
TF_CUDA_VERSION=8.0
TF_CUDNN_VERSION=6.0.21
TF_NEED_CUDA=1
TF_NEED_OPENCL=0
external/local_config_cuda/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-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -MD -MF bazel-out/local_linux-opt/bin/tensorflow/core/kernels/objs/padded_batch_dataset_op/tensorflow/core/kernels/padded_batch_dataset_op.pic.d '-frandom-seed=bazel-out/local_linux-opt/bin/tensorflow/core/kernels/objs/padded_batch_dataset_op/tensorflow/core/kernels/padded_batch_dataset_op.pic.o' -fPIC -DEIGEN_MPL2_ONLY -DSNAPPY -iquote . -iquote bazel-out/local_linux-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -iquote external/protobuf -iquote bazel-out/local_linux-opt/genfiles/external/protobuf -iquote external/eigen_archive -iquote bazel-out/local_linux-opt/genfiles/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/local_linux-opt/genfiles/external/local_config_sycl -iquote external/gif_archive -iquote bazel-out/local_linux-opt/genfiles/external/gif_archive -iquote external/jpeg -iquote bazel-out/local_linux-opt/genfiles/external/jpeg -iquote external/com_googlesource_code_re2 -iquote bazel-out/local_linux-opt/genfiles/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/local_linux-opt/genfiles/external/farmhash_archive -iquote external/fft2d -iquote bazel-out/local_linux-opt/genfiles/external/fft2d -iquote external/highwayhash -iquote bazel-out/local_linux-opt/genfiles/external/highwayhash -iquote external/png_archive -iquote bazel-out/local_linux-opt/genfiles/external/png_archive -iquote external/zlib_archive -iquote bazel-out/local_linux-opt/genfiles/external/zlib_archive -iquote external/snappy -iquote bazel-out/local_linux-opt/genfiles/external/snappy -iquote external/local_config_cuda -iquote bazel-out/local_linux-opt/genfiles/external/local_config_cuda -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/protobuf/src -isystem bazel-out/local_linux-opt/genfiles/external/protobuf/src -isystem external/eigen_archive -isystem bazel-out/local_linux-opt/genfiles/external/eigen_archive -isystem external/gif_archive/lib -isystem bazel-out/local_linux-opt/genfiles/external/gif_archive/lib -isystem external/farmhash_archive/src -isystem bazel-out/local_linux-opt/genfiles/external/farmhash_archive/src -isystem external/png_archive -isystem bazel-out/local_linux-opt/genfiles/external/png_archive -isystem external/zlib_archive -isystem bazel-out/local_linux-opt/genfiles/external/zlib_archive -isystem external/local_config_cuda/cuda -isystem bazel-out/local_linux-opt/genfiles/external/local_config_cuda/cuda -isystem external/local_config_cuda/cuda/cuda/include -isystem bazel-out/local_linux-opt/genfiles/external/local_config_cuda/cuda/cuda/include -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare -fno-exceptions '-DGOOGLE_CUDA=1' -pthread '-DGOOGLE_CUDA=1' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE="redacted"' '-D__TIMESTAMP
_="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers -c tensorflow/core/kernels/padded_batch_dataset_op.cc -o bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/padded_batch_dataset_op/tensorflow/core/kernels/padded_batch_dataset_op.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 4.
gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-5/README.Bugs for instructions.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 4820.413s, Critical Path: 1948.67s

Rebuilding the kernel to enable swap

I've just run into this problem...

"Note: L4T 28.1 does not have the swap file option selected in the stock kernel, so a custom kernel must be used with swap enabled. The option is 'Support for paging of anonymous memory (swap)'. The kernel configuration symbols are CONFIG_SWAP and SWAP."

Any advice on rebuilding the kernel? I've not attempted that before...

My kernel version is 4.4.38-tegra

The various resources on the web are a bit daunting/confusing

It's annoying that NVidia say they will add this option... over a year ago...

thanks!

packageTensorFlow.sh error

Hi,When I do this
./packageTensorFlow.sh
there is a error:
Mon Apr 3 14:31:53 CST 2017 : === Using tmpdir: /tmp/tmp.XKdajLIXiI
/tmp/tmp.XKdajLIXiI ~/tensorflow
Mon Apr 3 14:31:54 CST 2017 : === Building wheel
error: can't copy 'tensorflow/python/pywrap_tensorflow.py': doesn't exist or not a regular file
mv: cannot stat '/tmp/tensorflow_pkg/tensorflow-0.11.0-py2-none-any.whl': Not a directory

While my path /tmp/tmp.mOxA2mN1Mn/tensorflow/python have these files:
client init.py platform saved_model user_ops
debug lib pywrap_tensorflow.py summary util
framework ops _pywrap_tensorflow.so training

and in my home path /home/ubuntu/tensorflow/tensorflow/python/
there is this file(pywrap_tensorflow.py) . So why does this happen and what should I do next.
Please give me an idea,thank you!

run builidTensorflow.sh faild, could you help me? Please.

My environment:
cuda 8.0
cuDNN 5.1.5
for Jetson TX1

Logs :
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/media/ubuntu/jetsonssd/tensorflow/third_party/gpus/cuda_configure.bzl", line 1142
_create_local_cuda_repository(repository_ctx)
File "/media/ubuntu/jetsonssd/tensorflow/third_party/gpus/cuda_configure.bzl", line 1001, in _create_local_cuda_repository
_find_nvvm_libdevice_dir(repository_ctx, cuda_config)
File "/media/ubuntu/jetsonssd/tensorflow/third_party/gpus/cuda_configure.bzl", line 724, in _find_nvvm_libdevice_dir
auto_configure_fail(("Cannot find libdevice.10.bc un...))
File "/media/ubuntu/jetsonssd/tensorflow/third_party/gpus/cuda_configure.bzl", line 210, in auto_configure_fail
fail(("\n%sCuda Configuration Error:%...)))

Cuda Configuration Error: Cannot find libdevice.10.bc under /usr/local/cuda-8.0
WARNING: Target pattern parsing failed.
ERROR: error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/media/ubuntu/jetsonssd/tensorflow/third_party/gpus/cuda_configure.bzl", line 1142
_create_local_cuda_repository(repository_ctx)
File "/media/ubuntu/jetsonssd/tensorflow/third_party/gpus/cuda_configure.bzl", line 1001, in _create_local_cuda_repository
_find_nvvm_libdevice_dir(repository_ctx, cuda_config)
File "/media/ubuntu/jetsonssd/tensorflow/third_party/gpus/cuda_configure.bzl", line 724, in _find_nvvm_libdevice_dir
auto_configure_fail(("Cannot find libdevice.10.bc un...))
File "/media/ubuntu/jetsonssd/tensorflow/third_party/gpus/cuda_configure.bzl", line 210, in auto_configure_fail
fail(("\n%sCuda Configuration Error:%...)))

Cuda Configuration Error: Cannot find libdevice.10.bc under /usr/local/cuda-8.0
INFO: Elapsed time: 3.643s
FAILED: Build did NOT complete successfully (0 packages loaded)
currently loading: tensorflow/tools/pip_package

test fail help me..

`
nvidia@tegra-ubuntu:~/tensorflow$ time python tensorflow/models/image/mnist/convolutional.py
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:105] Couldn't open CUDA library libcudnn.so.5.1.5. LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:
I tensorflow/stream_executor/cuda/cuda_dnn.cc:3448] Unable to load cuDNN DSO
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally
Extracting data/train-images-idx3-ubyte.gz
Extracting data/train-labels-idx1-ubyte.gz
Extracting data/t10k-images-idx3-ubyte.gz
Extracting data/t10k-labels-idx1-ubyte.gz
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:892] ARM has no NUMA node, hardcoding to return zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
name: NVIDIA Tegra X1
major: 5 minor: 3 memoryClockRate (GHz) 0.072
pciBusID 0000:00:00.0
Total memory: 3.90GiB
Free memory: 1.54GiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0: Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: NVIDIA Tegra X1, pci bus id: 0000:00:00.0)
Initialized!
F tensorflow/stream_executor/cuda/cuda_dnn.cc:211] could not find cudnnCreate in cudnn DSO; dlerror: /usr/local/lib/python2.7/dist-packages/tensorflow/python/_pywrap_tensorflow.so: undefined symbol: cudnnCreate
Aborted

real 0m6.081s
user 0m4.210s
sys 0m1.680s

`

`
nvidia@tegra-ubuntu:/usr/local/cuda-8.0/lib64$ ls -al | grep libcudnn

lrwxrwxrwx 1 root root 13 Dec 28 20:12 libcudnn.so -> libcudnn.so.5
lrwxrwxrwx 1 root root 17 Dec 28 20:12 libcudnn.so.5 -> libcudnn.so.5.1.5
-rwxrwxrwx 1 root root 79337624 Dec 28 20:12 libcudnn.so.5.1.5
-rw-r--r-- 1 root root 69756172 Dec 28 20:12 libcudnn_static.a
`

build issue

Hello, Thank you for your instruction.
but i have a build issue.
when i built, i receive the follwing message;
Server finished RPC without an explicit exit code
How to resolve ?

Fail ./installPrerequisites.sh - Could not build Bazel

Hi, I've followed your guide to install tensorflow in jetson tx1. But when executing the installation of prerequisites, bazel fails. You could please help me with the fault, I leave the message from the terminal.

`File src/main/java/com/google/devtools/build/lib/util/CPU.java is read-only; trying to patch anyway
patching file src/main/java/com/google/devtools/build/lib/util/CPU.java
File tools/cpp/cc_configure.bzl is read-only; trying to patch anyway
patching file tools/cpp/cc_configure.bzl
patch: **** malformed patch at line 25: @@ -225,15 +225,16 @@ def _crosstool_content(repository_ctx, cc, cpu_value, darwin):

INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO: ./compile.sh compile /path/to/bazel
๐Ÿƒ Building Bazel from scratch.......
๐Ÿƒ Building Bazel with Bazel.
.WARNING: /tmp/bazel_kcSyTBND/out/external/bazel_tools/WORKSPACE:1: Workspace name in /tmp/bazel_kcSyTBND/out/external/bazel_tools/WORKSPACE (@io_bazel) does not match the name given in the repository's definition (@bazel_tools); this will cause a build error in future versions.
ERROR: No toolchain found for cpu 'unknown'. Valid cpus are: [
piii,
armeabi-v7a,
x64_windows_msvc,
s390x,
].
INFO: Elapsed time: 6.046s

ERROR: Could not build Bazel
cp: cannot stat 'output/bazel': No such file or directory`

Error running ./setTensorFlowEV.sh

Seems like there's no longer avro-1.8.0 version in the mirror so it fails to configure.

You need to make a tensorflow patch to tensorflow/workspace.bzl.
Find "avro_archive" and change url, sha256 and strip_prefix to this:

url = "http://www-us.apache.org/dist/avro/avro-1.8.1/cpp/avro-cpp-1.8.1.tar.gz",
sha256 = "6559755ac525e908e42a2aa43444576cba91e522fe989088ee7f70c169bcc403",
strip_prefix = "avro-cpp-1.8.1",

TX1 tensorflow Performance issue.

You are the father of TX1.
You think you know some answers.

Installation completed with the following address.
Https://github.com/jetsonhacks/installTensorFlowTX1

Swap memory is set to 8GB.

The time it takes to run the sample below is 15 seconds on TX1.
However, on an i5 class PC with Tensorflow CPU version installed, it takes only 1 second.

Cd tensorflow / models / image / imagenet
Python classify_image.py

It is expected that swap memory is not available and slow because of lack of basic memory.

Please run the sample once, and help me to run the sample above quickly.

Please.
Thank you.

How to create the custom kernel must be used with swap enabled !

My environment is
TX1
L4T 28.1.0
Board: t210ref
Ubuntu 16.04 LTS
Kernel Version: 4.4.38-tegra
( I haved Install SSD on it and followed by http://www.jetsonhacks.com/2017/01/28/install-samsung-ssd-on-nvidia-jetson-tx1/)

In the Preparation, I want to create the custom kernel must be used with swap enabled and
I follow the step from the vedio released from : http://www.jetsonhacks.com/2017/08/07/build-kernel-ttyacm-module-nvidia-jetson-tx1/

I always get the same kernel version (4.4.38-tegra) after I reboot the TX1 (type the "uname -r ")
I has change the local version, choosed the Support for paging of anonymous memory (swap) and
saved it finally !
I also ran the makeKernel.sh (terminal got the DEPMOD 4.4.38-jetsonbot-v0.1) and copyImage.sh !
(I have found the free space change when I getkernelsource and remove files in /usr/src)
why I always get the same kernel version after reboot ?

Anyone can give me some suggestions ?
Thanks for help !

setTensorFlowEV.sh issue

Hello, when I run setTensorFlowEV.sh.the program report the following error, can you tell me how to solve it. I'm very obliged to you.

ERROR: /home/ubuntu/tensorflow/tensorflow/tensorboard/bower/BUILD:5:1: no such package '@numericjs_numeric_1_2_6_min_js//file': Error downloading from http://www.numericjs.com/lib/numeric-1.2.6.min.js to /home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/external/numericjs_numeric_1_2_6_min_js: Error downloading http://www.numericjs.com/lib/numeric-1.2.6.min.js to /home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/external/numericjs_numeric_1_2_6_min_js/numeric-1.2.6.min.js: Read timed out and referenced by '//tensorflow/tensorboard/bower:bower'.
ERROR: /home/ubuntu/tensorflow/tensorflow/workspace.bzl:114:3: no such package '@gmock_archive//': Error downloading from http://pkgs.fedoraproject.org/repo/pkgs/gmock/gmock-1.7.0.zip/073b984d8798ea1594f5e44d85b20d66/gmock-1.7.0.zip to /home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/external/gmock_archive: Error downloading http://pkgs.fedoraproject.org/repo/pkgs/gmock/gmock-1.7.0.zip/073b984d8798ea1594f5e44d85b20d66/gmock-1.7.0.zip to /home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/external/gmock_archive/gmock-1.7.0.zip: Read timed out and referenced by '//external:gtest'.
ERROR: Evaluation of query "deps((//tensorflow/... union @bazel_tools//tools/jdk:toolchain))" failed: errors were encountered while computing transitive closure.

tensorflow-gpu not found

Hi.
i'm trying to install magenta-gpu after installing tensorflow 1.3 using your whl file and it's telling me that tensorflow-gpu cannot be found.
I know this is not a direct problem with your script, or whl file, but i wanted to ask. You know why this may be happening?
First command validates tensorflow 1.3 is installed.

nvidia@tegra-ubuntu:/media/sata$ python -c 'import tensorflow as tf; print(tf.__version__)'
1.3.0

nvidia@tegra-ubuntu:/media/sata$ pip install magenta-gpu
Collecting magenta-gpu
  Using cached magenta_gpu-0.3.2-py2.py3-none-any.whl
Collecting matplotlib>=1.5.3 (from magenta-gpu)
  Using cached matplotlib-2.1.0.tar.gz
Collecting mido==1.2.6 (from magenta-gpu)
  Using cached mido-1.2.6-py2.py3-none-any.whl
Collecting python-rtmidi (from magenta-gpu)
  Using cached python-rtmidi-1.1.0.zip
Collecting Pillow>=3.4.2 (from magenta-gpu)
  Using cached Pillow-4.3.0.tar.gz
Requirement already satisfied: wheel in /usr/lib/python2.7/dist-packages (from magenta-gpu)
Collecting scipy>=0.18.1 (from magenta-gpu)
  Using cached scipy-1.0.0.tar.gz
Requirement already satisfied: numpy>=1.11.0 in /usr/lib/python2.7/dist-packages (from magenta-gpu)
Collecting intervaltree>=2.1.0 (from magenta-gpu)
  Using cached intervaltree-2.1.0.tar.gz
Collecting pretty-midi>=0.2.6 (from magenta-gpu)
  Using cached pretty_midi-0.2.8.tar.gz
Collecting mir-eval>=0.4 (from magenta-gpu)
  Using cached mir_eval-0.4.tar.gz
Collecting tensorflow-gpu>=1.1.0 (from magenta-gpu)
  **Could not find a version that satisfies the requirement tensorflow-gpu>=1.1.0 (from magenta-gpu) (from versions: )
No matching distribution found for tensorflow-gpu>=1.1.0 (from magenta-gpu)**

Bazel build fails throwing errors

I have been following your excellent tutorial on building Tensorflow on TX1 from sources.
When I run the installPrerequisites.sh in both the version of tags (vL4T28.1TF1.3 & vL4T27.1TF0.11), the bazel is not building properly and throwing an error.
I am using Jetson TX1 - L4T 24.2, Ubuntu 16.04

Error when tried vL4T28.1TF1.3 : Bazel 0.5.2
I tried multiple times and each time it is showing same error at different files. The error is,
java.lang.InternalError: Cannot find requested source bundle for locale en_US at(list of files) Caused by: java.util,MissingResourceException: Can't find bundle for base name com.google.errorprone.errors, locale en_US

Target //src:bazel failed to build

Error when tried vL4T27.1TF0.11: Bazel 0.3.2
When I tried this version, the error is
Error: Java compilation in rule 'Filename': Javac worker (id 0) can no longer be used, because its process terminated itself or got killed.

Target //src:bazel failed to build

Could you please help me resolve this?
And also can you tell how you are finding what versions of bazel to be used for certain versions of Tensorflow?

Note: I am able to use both the prebuilt whl file from your website.

Error creating swapfile for tensorflow install (TX1)

Hello there.

I am trying to create a swapfile in a usb pendrive 16GB (formated as FAT32). After running the command:

sudo ./createSwapfile.sh -d /media/nvidia/MARCELO -s 8

I get the following errors:

Creating Swapfile at: /media/nvidia/MARCELO
Swapfile Size: 8G
Automount: N
fallocate: fallocate failed: Operation not supported
-rwxrwxrwx 1 nvidia nvidia 0 Feb 2 17:01 swapfile
-rwxrwxrwx 1 nvidia nvidia 0 Feb 2 17:01 swapfile
mkswap: error: swap area needs to be at least 40 KiB
swapon: /media/nvidia/MARCELO/swapfile: insecure permissions 0777, 0600 suggested.
swapon: /media/nvidia/MARCELO/swapfile: insecure file owner 1001, 0 (root) suggested.
swapon: /media/nvidia/MARCELO/swapfile: read swap header failed

Any ideas? I am lost (new in linux) and really need to have tensorflow with gpu access in my TX1.

Thanks! :)

core/kernels/_objs/bincount_op_gpu/tensorflow/core/kernels/bincount_op_gpu.cu.pic.o' was not created

Hi i'm running the tensorflow from source with cuda gpu support
Command is pasted below
bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

ERROR MESSAGE PASTED BELOW

INFO: From Compiling tensorflow/core/kernels/bincount_op_gpu.cu.cc:
./tensorflow/core/util/cuda_kernel_helper.h(116): error: namespace "Eigen::half_impl" has no member "__half_raw"

./tensorflow/core/util/cuda_kernel_helper.h(116): error: expected a ")"

./tensorflow/core/util/cuda_kernel_helper.h(117): error: namespace "Eigen::half_impl" has no member "__half_raw"

./tensorflow/core/util/cuda_kernel_helper.h(120): error: namespace "Eigen::half_impl" has no member "__half_raw"

./tensorflow/core/util/cuda_kernel_helper.h(120): error: expected a ";"

./tensorflow/core/util/cuda_kernel_helper.h(126): error: namespace "Eigen::half_impl" has no member "__half_raw"

./tensorflow/core/util/cuda_kernel_helper.h(126): error: expected a ")"

./tensorflow/core/util/cuda_kernel_helper.h(127): error: namespace "Eigen::half_impl" has no member "__half_raw"

./tensorflow/core/util/cuda_kernel_helper.h(130): error: namespace "Eigen::half_impl" has no member "__half_raw"

./tensorflow/core/util/cuda_kernel_helper.h(130): error: expected a ";"

10 errors detected in the compilation of "/home/lb/.cache/bazel/_bazel_lb/144f5944ef8ff562c57e67fdaa41565f/execroot/org_tensorflow/tmp557_797e0d9b2e6c8ac1/tmpxft_0000709d_00000000-6_bincount_op_gpu.cu.cpp1.ii".
ERROR: /home/lb/WorkSpace/AI-WORK/tensorflow/tensorflow/core/kernels/BUILD:3236:1: output 'tensorflow/core/kernels/_objs/bincount_op_gpu/tensorflow/core/kernels/bincount_op_gpu.cu.pic.o' was not created
ERROR: /home/lb/WorkSpace/AI-WORK/tensorflow/tensorflow/core/kernels/BUILD:3236:1: not all outputs were created or valid
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 688.604s, Critical Path: 79.75s
FAILED: Build did NOT complete successfully

Zlib library patch not completing along side avro update - TX2

Used these scripts on a TX1 and a TX2 today, the TX1 did not find these problems, however with the TX2 the patch didnt seem to apply for the Zlib move. Manually changing the tensorflow/tensorflow/workspace.bzl file to reflect the move worked.

The avro.tar file has also changed location (again, only present on the TX2) which only needed the 1.8.0 version adapted to 1.8.2, eg: "avro-doc-1.8.2.tar.gz".

Maybe not always useful, if needing the latest, but using this means the versions synced.

Run ./installPrerequisites.sh - Could not build Bazel

Anyone got this error when run the installPrerequisites.sh ?

ERROR: /home/ubuntu/bazel-0.5.2-dist/src/tools/android/java/com/google/devtools/build/android/ziputils/BUILD:20:1: Building src/tools/android/java/com/google/devtools/build/android/ziputils/libziputils_lib.jar (12 source files) failed: Worker process sent response with exit code: 1.
java.lang.InternalError: Cannot find requested resource bundle for locale en_US
at com.sun.tools.javac.util.JavacMessages.getBundles(JavacMessages.java:128)
at com.sun.tools.javac.util.JavacMessages.getLocalizedString(JavacMessages.java:147)
at com.sun.tools.javac.util.JavacMessages.getLocalizedString(JavacMessages.java:140)
at com.sun.tools.javac.util.Log.localize(Log.java:788)
at com.sun.tools.javac.util.Log.printLines(Log.java:586)
at com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:170)
at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:96)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:90)
at com.google.devtools.build.buildjar.javac.BlazeJavacMain.compile(BlazeJavacMain.java:103)
at com.google.devtools.build.buildjar.SimpleJavaLibraryBuilder$1.invokeJavac(SimpleJavaLibraryBuilder.java:106)
at com.google.devtools.build.buildjar.ReducedClasspathJavaLibraryBuilder.compileSources(ReducedClasspathJavaLibraryBuilder.java:53)
at com.google.devtools.build.buildjar.SimpleJavaLibraryBuilder.compileJavaLibrary(SimpleJavaLibraryBuilder.java:109)
at com.google.devtools.build.buildjar.SimpleJavaLibraryBuilder.run(SimpleJavaLibraryBuilder.java:121)
at com.google.devtools.build.buildjar.BazelJavaBuilder.processRequest(BazelJavaBuilder.java:89)
at com.google.devtools.build.buildjar.BazelJavaBuilder.runPersistentWorker(BazelJavaBuilder.java:66)
at com.google.devtools.build.buildjar.BazelJavaBuilder.main(BazelJavaBuilder.java:44)
Caused by: java.util.MissingResourceException: Can't find bundle for base name com.google.errorprone.errors, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1573)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1396)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:854)
at com.sun.tools.javac.util.JavacMessages.lambda$add$0(JavacMessages.java:106)
at com.sun.tools.javac.util.JavacMessages.getBundles(JavacMessages.java:125)
... 15 more
Target //src:bazel failed to build
INFO: Elapsed time: 702.070s, Critical Path: 119.12s

ERROR: Could not build Bazel

Can you give me how to fix it or some suggestions ?
Thanks you very much !

Error while building wheel file

when i execute the command
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg

i get the error
can't copy 'tensorflow/python/training/gen_training_ops.py': doesn't exist or not a regular file

Target //tensorflow/tools/pip_package:build_pip_package failed to build

when i was built, i receive below message.
It said Build reported as successful, I can't progress
How to resolve it?

Target //tensorflow/tools/pip_package:build_pip_package failed to build Unhandled exception thrown during build; message: Build reported as successful but not all artifacts and targets built: EvaluationResult{catastrophe=null, errorMap={}, resultMap={ARTIFACT:stable-status.txt com.google.devtools.build.lib.skyframe.WorkspaceStatusValue$BuildInfoKey@3f5f147a=RegularFileArtifactValue{digest=[-1, -123, -2, 45, -102, 110, 58, 68, -3, 81, 60, 49, 12, 48, -68, 38], size=60}, ARTIFACT:volatile-status.txt com.google.devtools.build.lib.skyframe.WorkspaceStatusValue$BuildInfoKey@3f5f147a=RegularFileArtifactValue{digest=[-19, -75, 71, 47, 114, 84, -9, 63, -48, -113, 103, -76, 81, 19, 92, 78], size=29}}}, [Artifact:[[/home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/execroot/org_tensorflow]bazel-out]volatile-status.txt, Artifact:[[/home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/execroot/org_tensorflow]bazel-out]stable-status.txt] INFO: Elapsed time: 13558.497s, Critical Path: 12955.78s java.lang.IllegalStateException: Build reported as successful but not all artifacts and targets built: EvaluationResult{catastrophe=null, errorMap={}, resultMap={ARTIFACT:stable-status.txt com.google.devtools.build.lib.skyframe.WorkspaceStatusValue$BuildInfoKey@3f5f147a=RegularFileArtifactValue{digest=[-1, -123, -2, 45, -102, 110, 58, 68, -3, 81, 60, 49, 12, 48, -68, 38], size=60}, ARTIFACT:volatile-status.txt com.google.devtools.build.lib.skyframe.WorkspaceStatusValue$BuildInfoKey@3f5f147a=RegularFileArtifactValue{digest=[-19, -75, 71, 47, 114, 84, -9, 63, -48, -113, 103, -76, 81, 19, 92, 78], size=29}}}, [Artifact:[[/home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/execroot/org_tensorflow]bazel-out]volatile-status.txt, Artifact:[[/home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/execroot/org_tensorflow]bazel-out]stable-status.txt] at com.google.common.base.Preconditions.checkState(Preconditions.java:199) at com.google.devtools.build.lib.util.Preconditions.checkState(Preconditions.java:238) at com.google.devtools.build.lib.buildtool.SkyframeBuilder.buildArtifacts(SkyframeBuilder.java:156) at com.google.devtools.build.lib.buildtool.ExecutionTool.executeBuild(ExecutionTool.java:433) at com.google.devtools.build.lib.buildtool.BuildTool.buildTargets(BuildTool.java:196) at com.google.devtools.build.lib.buildtool.BuildTool.processRequest(BuildTool.java:332) at com.google.devtools.build.lib.runtime.commands.BuildCommand.exec(BuildCommand.java:69) at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:499) at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:327) at com.google.devtools.build.lib.runtime.CommandExecutor.exec(CommandExecutor.java:49) at com.google.devtools.build.lib.server.GrpcServerImpl.executeCommand(GrpcServerImpl.java:655) at com.google.devtools.build.lib.server.GrpcServerImpl.access$1400(GrpcServerImpl.java:99) at com.google.devtools.build.lib.server.GrpcServerImpl$3$1.run(GrpcServerImpl.java:722) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) java.lang.IllegalStateException: Build reported as successful but not all artifacts and targets built: EvaluationResult{catastrophe=null, errorMap={}, resultMap={ARTIFACT:stable-status.txt com.google.devtools.build.lib.skyframe.WorkspaceStatusValue$BuildInfoKey@3f5f147a=RegularFileArtifactValue{digest=[-1, -123, -2, 45, -102, 110, 58, 68, -3, 81, 60, 49, 12, 48, -68, 38], size=60}, ARTIFACT:volatile-status.txt com.google.devtools.build.lib.skyframe.WorkspaceStatusValue$BuildInfoKey@3f5f147a=RegularFileArtifactValue{digest=[-19, -75, 71, 47, 114, 84, -9, 63, -48, -113, 103, -76, 81, 19, 92, 78], size=29}}}, [Artifact:[[/home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/execroot/org_tensorflow]bazel-out]volatile-status.txt, Artifact:[[/home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/execroot/org_tensorflow]bazel-out]stable-status.txt] at com.google.common.base.Preconditions.checkState(Preconditions.java:199) at com.google.devtools.build.lib.util.Preconditions.checkState(Preconditions.java:238) at com.google.devtools.build.lib.buildtool.SkyframeBuilder.buildArtifacts(SkyframeBuilder.java:156) at com.google.devtools.build.lib.buildtool.ExecutionTool.executeBuild(ExecutionTool.java:433) at com.google.devtools.build.lib.buildtool.BuildTool.buildTargets(BuildTool.java:196) at com.google.devtools.build.lib.buildtool.BuildTool.processRequest(BuildTool.java:332) at com.google.devtools.build.lib.runtime.commands.BuildCommand.exec(BuildCommand.java:69) at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:499) at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:327) at com.google.devtools.build.lib.runtime.CommandExecutor.exec(CommandExecutor.java:49) at com.google.devtools.build.lib.server.GrpcServerImpl.executeCommand(GrpcServerImpl.java:655) at com.google.devtools.build.lib.server.GrpcServerImpl.access$1400(GrpcServerImpl.java:99) at com.google.devtools.build.lib.server.GrpcServerImpl$3$1.run(GrpcServerImpl.java:722) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.