在NVIDIA Jetson Xavier上构建服务Tensorflow

时间:2019-01-21 04:34:46

标签: tensorflow-serving nvidia-jetson

我正在尝试在Nvidia Jetson Xavier上构建tensorflow服务。我已经安装了所有依赖项以及cuda和cudnn。我从nvidia提供的.whl文件中安装了tensorflow并运行bazel 0.20.0。但是当我尝试构建tensorflow服务时,出现以下错误。我尝试了几种不同版本的tf服务(0.10-0.12)和master,但它们都给出了相同的错误。

ERROR: /home/nvidia/.cache/bazel/_bazel_nvidia/e07dd11400dd0f5e80daa6d5086c0965/external/com_github_libevent_libevent/BUILD.bazel:52:1: Executing genrule @com_github_libevent_libevent//:libevent-srcs failed (Exit 1) bash failed: error executing command 
  (cd /home/nvidia/.cache/bazel/_bazel_nvidia/e07dd11400dd0f5e80daa6d5086c0965/execroot/tf_serving && \
  exec env - \
    LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64: \
    PATH=/usr/local/cuda-10.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; export INSTALL_DIR=$(pwd)/bazel-out/aarch64-fastbuild/genfiles/external/com_github_libevent_libevent/libevent
export TMP_DIR=$(mktemp -d -t libevent.XXXXX)
mkdir -p $TMP_DIR
cp -R $(pwd)/external/com_github_libevent_libevent/* $TMP_DIR
cd $TMP_DIR
./autogen.sh
./configure --prefix=$INSTALL_DIR CFLAGS=-fPIC CXXFLAGS=-fPIC --enable-shared=no --disable-openssl
make install
rm -rf $TMP_DIR')
Execution platform: @bazel_tools//platforms:host_platform

Use --sandbox_debug to see verbose messages from the sandbox: bash failed: error executing command 
  (cd /home/nvidia/.cache/bazel/_bazel_nvidia/e07dd11400dd0f5e80daa6d5086c0965/execroot/tf_serving && \
  exec env - \
    LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64: \
    PATH=/usr/local/cuda-10.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; export INSTALL_DIR=$(pwd)/bazel-out/aarch64-fastbuild/genfiles/external/com_github_libevent_libevent/libevent
export TMP_DIR=$(mktemp -d -t libevent.XXXXX)
mkdir -p $TMP_DIR
cp -R $(pwd)/external/com_github_libevent_libevent/* $TMP_DIR
cd $TMP_DIR
./autogen.sh
./configure --prefix=$INSTALL_DIR CFLAGS=-fPIC CXXFLAGS=-fPIC --enable-shared=no --disable-openssl
make install
rm -rf $TMP_DIR')
Execution platform: @bazel_tools//platforms:host_platform

Use --sandbox_debug to see verbose messages from the sandbox
cp: cannot stat '/home/nvidia/.cache/bazel/_bazel_nvidia/e07dd11400dd0f5e80daa6d5086c0965/sandbox/linux-sandbox/534/execroot/tf_serving/external/com_github_libevent_libevent/*': No such file or directory
Target //tensorflow_serving/model_servers:tensorflow_model_server failed to build
INFO: Elapsed time: 389.783s, Critical Path: 100.99s
INFO: 528 processes: 528 linux-sandbox.
FAILED: Build did NOT complete successfully

0 个答案:

没有答案