Centos 如何安装tensor flow gpu?

Centos 如何安装tensor flow gpu?,centos,tensorflow,installation,Centos,Tensorflow,Installation,我目前在安装支持gpu的tensor flow时遇到一些问题 这是我遵循的指南 安装NVIDIA CUDA(预装) 安装NVIDIA cuDNN(预装) 安装bazel wget https://github.com/bazelbuild/bazel/releases/download/0.4.3/bazel-0.4.3-installer-linux-x86_64.sh chmod +x bazel-0.4.3-installer-linux-x86_64.sh ./bazel-

我目前在安装支持gpu的tensor flow时遇到一些问题

这是我遵循的指南

  • 安装NVIDIA CUDA(预装)
  • 安装NVIDIA cuDNN(预装)
  • 安装bazel

    wget https://github.com/bazelbuild/bazel/releases/download/0.4.3/bazel-0.4.3-installer-linux-x86_64.sh      
    chmod +x bazel-0.4.3-installer-linux-x86_64.sh
    ./bazel-0.4.3-installer-linux-x86_64.sh --user
    
  • 从源安装张量流

    git克隆

    cd张量流/

    /配置

    bazel build-c opt--config=cuda//tensorflow/tools/pip_包:build_-pip_包

最后一个还没完。。或者是。。它会出现一条错误消息

a@fe1:~/tensorflow$ bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

.
WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.build/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.

Server finished RPC without an explicit exit code
在这之后,我应该能够做到这一点吗

bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tenso
rflow_pkg
根据指南,但这是不可能的

我以前有tensor flow cpu版本运行,但由于gpu的需求迫切,我决定安装它。。。但没想到会这么麻烦

你知道为什么不可能建造它吗

操作系统:centOS 7.1
gpu:nvidea

我在尝试使用Bazel从源代码安装Tensorflow时也遇到了问题。可能是当前的Bazel版本有问题,因为我以前也遇到过这种情况。如果您向我们提供有关您的系统(操作系统和gpu)的信息会有所帮助,但您最好使用pip(或pip3)和sudo pip(3)安装tensorflow gpu。

pip安装tensor flow gpu在我的gpu上不起作用,这就是为什么我要这么做的原因。您使用的是哪个操作系统和python版本?您确定红帽衍生产品支持gpu版本吗?我使用的是外部群集,因为它是为深入学习而构建的。。我想一切都会好起来的。。