File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ # install requirements
5+ export DEBIAN_FRONTEND=noninteractive
6+ apt-get -y update
7+ apt-get -y install \
8+ cmake \
9+ g++-7 \
10+ git \
11+ python3-dev \
12+ python3-numpy \
13+ sudo \
14+ wget
15+
16+ # install bazel
17+ export BAZEL_VERSION=${BAZEL_VERSION:- `cat ./ Dockerfiles/ BAZEL_VERSION`}
18+ apt-get -y install pkg-config zip g++ zlib1g-dev unzip python
19+ bazel_installer=bazel-${BAZEL_VERSION} -installer-linux-x86_64.sh
20+ wget -P /tmp https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION} /${bazel_installer}
21+ chmod +x /tmp/${bazel_installer}
22+ /tmp/${bazel_installer}
23+ rm /tmp/${bazel_installer}
24+
25+ if [[ ${BUILD_WITH_CUDA:- " OFF" } == " ON" ]]; then
26+ # install libcupti
27+ apt-get -y install cuda-command-line-tools-10-1
28+ fi
You can’t perform that action at this time.
0 commit comments