版本对应关系:
bazel 0.15
tensorflow 1.10
cuda 9.2
cudnn 7.3.1
protobuf 3.6.0
nvidia driver
<https://docs.bazel.build/versions/master/install-ubuntu.html>
1. download the Bazel binary installer named bazel-<version>-installer-linux-x86_64.sh from the Bazel releases page on GitHub(https://github.com/bazelbuild/bazel/releases).
1) wget https://github.com/bazelbuild/bazel/releases/download/0.15.0/bazel-0.15.0-installer-linux-x86_64.sh
2) bash bazel-0.15.0-installer-linux-x86_64.sh
<https://developer.nvidia.com/cuda-downloads>
2. download cuda
1)wget
2)sudo sh cuda_9.2.148_396.37_linux.run 需要安装driver和cuda
<https://developer.nvidia.com/rdp/cudnn-archive#a-collapse731-92>
3. download cudnn (libcudnn7_7.3.1.20-1+cuda9.2_amd64.deb)
1)注册账号
2)下载“Runtime Library”和“Developer Library”连个deb安装包
3)将上述连个安装包先后安装 sudo dpkg -i libcudnn7-dev