Geoffrey Irving | 4c85a08 | 2016-03-16 12:20:34 -0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 2 | |
Vijay Vasudevan | 80a5a3e | 2016-03-29 18:23:11 -0800 | [diff] [blame] | 3 | DO_NOT_SUBMIT_WARNING="Unofficial setting. DO NOT SUBMIT!!!" |
| 4 | |
Andrew Selle | 09045e4 | 2016-09-06 08:19:04 -0800 | [diff] [blame^] | 5 | # Find out the absolute path to where ./configure resides |
| 6 | pushd `dirname $0` #> /dev/null |
| 7 | SOURCE_BASE_DIR=`pwd -P` |
| 8 | popd > /dev/null |
| 9 | |
Vijay Vasudevan | bf6b536 | 2015-12-02 15:04:40 -0800 | [diff] [blame] | 10 | ## Set up python-related environment settings |
| 11 | while true; do |
| 12 | fromuser="" |
| 13 | if [ -z "$PYTHON_BIN_PATH" ]; then |
| 14 | default_python_bin_path=$(which python) |
| 15 | read -p "Please specify the location of python. [Default is $default_python_bin_path]: " PYTHON_BIN_PATH |
| 16 | fromuser="1" |
| 17 | if [ -z "$PYTHON_BIN_PATH" ]; then |
| 18 | PYTHON_BIN_PATH=$default_python_bin_path |
| 19 | fi |
| 20 | fi |
| 21 | if [ -e "$PYTHON_BIN_PATH" ]; then |
| 22 | break |
| 23 | fi |
| 24 | echo "Invalid python path. ${PYTHON_BIN_PATH} cannot be found" 1>&2 |
| 25 | if [ -z "$fromuser" ]; then |
| 26 | exit 1 |
| 27 | fi |
| 28 | PYTHON_BIN_PATH="" |
| 29 | # Retry |
| 30 | done |
| 31 | |
A. Unique TensorFlower | ed65e69 | 2016-05-11 21:03:48 -0800 | [diff] [blame] | 32 | while [ "$TF_NEED_GCP" == "" ]; do |
| 33 | read -p "Do you wish to build TensorFlow with "\ |
| 34 | "Google Cloud Platform support? [y/N] " INPUT |
| 35 | case $INPUT in |
| 36 | [Yy]* ) echo "Google Cloud Platform support will be enabled for "\ |
| 37 | "TensorFlow"; TF_NEED_GCP=1;; |
| 38 | [Nn]* ) echo "No Google Cloud Platform support will be enabled for "\ |
| 39 | "TensorFlow"; TF_NEED_GCP=0;; |
| 40 | "" ) echo "No Google Cloud Platform support will be enabled for "\ |
| 41 | "TensorFlow"; TF_NEED_GCP=0;; |
| 42 | * ) echo "Invalid selection: " $INPUT;; |
| 43 | esac |
| 44 | done |
| 45 | |
| 46 | if [ "$TF_NEED_GCP" == "1" ]; then |
| 47 | |
| 48 | ## Verify that libcurl header files are available. |
| 49 | # Only check Linux, since on MacOS the header files are installed with XCode. |
| 50 | if [[ $(uname -a) =~ Linux ]] && [[ ! -f "/usr/include/curl/curl.h" ]]; then |
| 51 | echo "ERROR: It appears that the development version of libcurl is not "\ |
| 52 | "available. Please install the libcurl3-dev package." |
| 53 | exit 1 |
| 54 | fi |
| 55 | |
| 56 | # Update Bazel build configuration. |
| 57 | perl -pi -e "s,WITH_GCP_SUPPORT = (False|True),WITH_GCP_SUPPORT = True,s" tensorflow/core/platform/default/build_config.bzl |
| 58 | else |
| 59 | # Update Bazel build configuration. |
| 60 | perl -pi -e "s,WITH_GCP_SUPPORT = (False|True),WITH_GCP_SUPPORT = False,s" tensorflow/core/platform/default/build_config.bzl |
| 61 | fi |
| 62 | |
Vijay Vasudevan | 80a5a3e | 2016-03-29 18:23:11 -0800 | [diff] [blame] | 63 | ## Find swig path |
| 64 | if [ -z "$SWIG_PATH" ]; then |
| 65 | SWIG_PATH=`type -p swig 2> /dev/null` |
| 66 | fi |
| 67 | if [[ ! -e "$SWIG_PATH" ]]; then |
| 68 | echo "Can't find swig. Ensure swig is in \$PATH or set \$SWIG_PATH." |
| 69 | exit 1 |
| 70 | fi |
| 71 | echo "$SWIG_PATH" > tensorflow/tools/swig/swig_path |
| 72 | |
Vijay Vasudevan | bf6b536 | 2015-12-02 15:04:40 -0800 | [diff] [blame] | 73 | # Invoke python_config and set up symlinks to python includes |
| 74 | (./util/python/python_config.sh --setup "$PYTHON_BIN_PATH";) || exit -1 |
| 75 | |
Andrew Selle | 09045e4 | 2016-09-06 08:19:04 -0800 | [diff] [blame^] | 76 | # Run the gen_git_source to create links where bazel can track dependencies for |
| 77 | # git hash propagation |
| 78 | GEN_GIT_SOURCE=tensorflow/tools/git/gen_git_source.py |
| 79 | chmod a+x ${GEN_GIT_SOURCE} |
| 80 | ${PYTHON_BIN_PATH} ${GEN_GIT_SOURCE} --configure ${SOURCE_BASE_DIR} |
| 81 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 82 | ## Set up Cuda-related environment settings |
| 83 | |
| 84 | while [ "$TF_NEED_CUDA" == "" ]; do |
Vijay Vasudevan | bf6b536 | 2015-12-02 15:04:40 -0800 | [diff] [blame] | 85 | read -p "Do you wish to build TensorFlow with GPU support? [y/N] " INPUT |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 86 | case $INPUT in |
Vijay Vasudevan | bf6b536 | 2015-12-02 15:04:40 -0800 | [diff] [blame] | 87 | [Yy]* ) echo "GPU support will be enabled for TensorFlow"; TF_NEED_CUDA=1;; |
| 88 | [Nn]* ) echo "No GPU support will be enabled for TensorFlow"; TF_NEED_CUDA=0;; |
| 89 | "" ) echo "No GPU support will be enabled for TensorFlow"; TF_NEED_CUDA=0;; |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 90 | * ) echo "Invalid selection: " $INPUT;; |
| 91 | esac |
| 92 | done |
| 93 | |
A. Unique TensorFlower | 2c598e8 | 2016-08-25 10:22:44 -0800 | [diff] [blame] | 94 | export TF_NEED_CUDA |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 95 | if [ "$TF_NEED_CUDA" == "0" ]; then |
| 96 | echo "Configuration finished" |
| 97 | exit |
| 98 | fi |
| 99 | |
Vijay Vasudevan | 80a5a3e | 2016-03-29 18:23:11 -0800 | [diff] [blame] | 100 | # Set up which gcc nvcc should use as the host compiler |
| 101 | while true; do |
| 102 | fromuser="" |
| 103 | if [ -z "$GCC_HOST_COMPILER_PATH" ]; then |
| 104 | default_gcc_host_compiler_path=$(which gcc) |
Shanqing Cai | a81c4f9 | 2016-07-22 10:37:35 -0800 | [diff] [blame] | 105 | read -p "Please specify which gcc should be used by nvcc as the host compiler. [Default is $default_gcc_host_compiler_path]: " GCC_HOST_COMPILER_PATH |
Vijay Vasudevan | 80a5a3e | 2016-03-29 18:23:11 -0800 | [diff] [blame] | 106 | fromuser="1" |
| 107 | if [ -z "$GCC_HOST_COMPILER_PATH" ]; then |
| 108 | GCC_HOST_COMPILER_PATH=$default_gcc_host_compiler_path |
| 109 | fi |
| 110 | fi |
| 111 | if [ -e "$GCC_HOST_COMPILER_PATH" ]; then |
A. Unique TensorFlower | b0bdff4 | 2016-08-26 12:50:48 -0800 | [diff] [blame] | 112 | export GCC_HOST_COMPILER_PATH |
Vijay Vasudevan | 80a5a3e | 2016-03-29 18:23:11 -0800 | [diff] [blame] | 113 | break |
| 114 | fi |
| 115 | echo "Invalid gcc path. ${GCC_HOST_COMPILER_PATH} cannot be found" 1>&2 |
| 116 | if [ -z "$fromuser" ]; then |
| 117 | exit 1 |
| 118 | fi |
| 119 | GCC_HOST_COMPILER_PATH="" |
| 120 | # Retry |
| 121 | done |
| 122 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 123 | # Find out where the CUDA toolkit is installed |
A. Unique TensorFlower | 8bf6ef1 | 2016-05-05 08:36:05 -0800 | [diff] [blame] | 124 | OSNAME=`uname -s` |
| 125 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 126 | while true; do |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 127 | # Configure the Cuda SDK version to use. |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 128 | if [ -z "$TF_CUDA_VERSION" ]; then |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 129 | read -p "Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: " TF_CUDA_VERSION |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 130 | fi |
| 131 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 132 | fromuser="" |
| 133 | if [ -z "$CUDA_TOOLKIT_PATH" ]; then |
| 134 | default_cuda_path=/usr/local/cuda |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 135 | read -p "Please specify the location where CUDA $TF_CUDA_VERSION toolkit is installed. Refer to README.md for more details. [Default is $default_cuda_path]: " CUDA_TOOLKIT_PATH |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 136 | fromuser="1" |
| 137 | if [ -z "$CUDA_TOOLKIT_PATH" ]; then |
| 138 | CUDA_TOOLKIT_PATH=$default_cuda_path |
| 139 | fi |
| 140 | fi |
A. Unique TensorFlower | 8bf6ef1 | 2016-05-05 08:36:05 -0800 | [diff] [blame] | 141 | |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 142 | if [[ -z "$TF_CUDA_VERSION" ]]; then |
| 143 | TF_CUDA_EXT="" |
| 144 | else |
| 145 | TF_CUDA_EXT=".$TF_CUDA_VERSION" |
| 146 | fi |
A. Unique TensorFlower | 8bf6ef1 | 2016-05-05 08:36:05 -0800 | [diff] [blame] | 147 | |
| 148 | if [ "$OSNAME" == "Linux" ]; then |
| 149 | CUDA_RT_LIB_PATH="lib64/libcudart.so${TF_CUDA_EXT}" |
| 150 | elif [ "$OSNAME" == "Darwin" ]; then |
| 151 | CUDA_RT_LIB_PATH="lib/libcudart${TF_CUDA_EXT}.dylib" |
| 152 | fi |
| 153 | |
| 154 | if [ -e "${CUDA_TOOLKIT_PATH}/${CUDA_RT_LIB_PATH}" ]; then |
A. Unique TensorFlower | 2c598e8 | 2016-08-25 10:22:44 -0800 | [diff] [blame] | 155 | export CUDA_TOOLKIT_PATH |
A. Unique TensorFlower | b0bdff4 | 2016-08-26 12:50:48 -0800 | [diff] [blame] | 156 | export TF_CUDA_VERSION |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 157 | break |
| 158 | fi |
A. Unique TensorFlower | 8bf6ef1 | 2016-05-05 08:36:05 -0800 | [diff] [blame] | 159 | echo "Invalid path to CUDA $TF_CUDA_VERSION toolkit. ${CUDA_TOOLKIT_PATH}/${CUDA_RT_LIB_PATH} cannot be found" |
| 160 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 161 | if [ -z "$fromuser" ]; then |
| 162 | exit 1 |
| 163 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 164 | # Retry |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 165 | TF_CUDA_VERSION="" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 166 | CUDA_TOOLKIT_PATH="" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 167 | done |
| 168 | |
Martin Wicke | 916776a | 2016-01-14 07:30:00 -0800 | [diff] [blame] | 169 | # Find out where the cuDNN library is installed |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 170 | while true; do |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 171 | # Configure the Cudnn version to use. |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 172 | if [ -z "$TF_CUDNN_VERSION" ]; then |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 173 | read -p "Please specify the Cudnn version you want to use. [Leave empty to use system default]: " TF_CUDNN_VERSION |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 174 | fi |
| 175 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 176 | fromuser="" |
| 177 | if [ -z "$CUDNN_INSTALL_PATH" ]; then |
| 178 | default_cudnn_path=${CUDA_TOOLKIT_PATH} |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 179 | read -p "Please specify the location where cuDNN $TF_CUDNN_VERSION library is installed. Refer to README.md for more details. [Default is $default_cudnn_path]: " CUDNN_INSTALL_PATH |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 180 | fromuser="1" |
| 181 | if [ -z "$CUDNN_INSTALL_PATH" ]; then |
| 182 | CUDNN_INSTALL_PATH=$default_cudnn_path |
| 183 | fi |
| 184 | # Result returned from "read" will be used unexpanded. That make "~" unuseable. |
| 185 | # Going through one more level of expansion to handle that. |
A. Unique TensorFlower | 8bf6ef1 | 2016-05-05 08:36:05 -0800 | [diff] [blame] | 186 | CUDNN_INSTALL_PATH=`${PYTHON_BIN_PATH} -c "import os; print(os.path.realpath(os.path.expanduser('${CUDNN_INSTALL_PATH}')))"` |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 187 | fi |
A. Unique TensorFlower | 8bf6ef1 | 2016-05-05 08:36:05 -0800 | [diff] [blame] | 188 | |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 189 | if [[ -z "$TF_CUDNN_VERSION" ]]; then |
| 190 | TF_CUDNN_EXT="" |
A. Unique TensorFlower | 533d891 | 2016-06-30 12:10:50 -0800 | [diff] [blame] | 191 | # Resolve to the SONAME of the symlink. Use readlink without -f |
| 192 | # to resolve exactly once to the SONAME. E.g, libcudnn.so -> |
| 193 | # libcudnn.so.4 |
| 194 | REALVAL=`readlink ${CUDNN_INSTALL_PATH}/lib64/libcudnn.so` |
| 195 | |
| 196 | # Extract the version of the SONAME, if it was indeed symlinked to |
| 197 | # the SONAME version of the file. |
| 198 | if [[ "$REALVAL" =~ .so[.]+([0-9]*) ]]; |
| 199 | then |
| 200 | TF_CUDNN_EXT="."${BASH_REMATCH[1]} |
| 201 | TF_CUDNN_VERSION=${BASH_REMATCH[1]} |
| 202 | echo "libcudnn.so resolves to libcudnn${TF_CUDNN_EXT}" |
| 203 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 204 | else |
| 205 | TF_CUDNN_EXT=".$TF_CUDNN_VERSION" |
| 206 | fi |
A. Unique TensorFlower | 8bf6ef1 | 2016-05-05 08:36:05 -0800 | [diff] [blame] | 207 | |
| 208 | if [ "$OSNAME" == "Linux" ]; then |
| 209 | CUDA_DNN_LIB_PATH="lib64/libcudnn.so${TF_CUDNN_EXT}" |
| 210 | CUDA_DNN_LIB_ALT_PATH="libcudnn.so${TF_CUDNN_EXT}" |
| 211 | elif [ "$OSNAME" == "Darwin" ]; then |
| 212 | CUDA_DNN_LIB_PATH="lib/libcudnn${TF_CUDNN_EXT}.dylib" |
| 213 | CUDA_DNN_LIB_ALT_PATH="libcudnn${TF_CUDNN_EXT}.dylib" |
| 214 | fi |
| 215 | |
| 216 | if [ -e "$CUDNN_INSTALL_PATH/${CUDA_DNN_LIB_ALT_PATH}" -o -e "$CUDNN_INSTALL_PATH/${CUDA_DNN_LIB_PATH}" ]; then |
A. Unique TensorFlower | b0bdff4 | 2016-08-26 12:50:48 -0800 | [diff] [blame] | 217 | export TF_CUDNN_VERSION |
A. Unique TensorFlower | 2c598e8 | 2016-08-25 10:22:44 -0800 | [diff] [blame] | 218 | export CUDNN_INSTALL_PATH |
Eugene Brevdo | 56f1d64 | 2016-03-10 17:18:30 -0800 | [diff] [blame] | 219 | break |
| 220 | fi |
A. Unique TensorFlower | 8bf6ef1 | 2016-05-05 08:36:05 -0800 | [diff] [blame] | 221 | |
| 222 | if [ "$OSNAME" == "Linux" ]; then |
| 223 | CUDNN_PATH_FROM_LDCONFIG="$(ldconfig -p | sed -n 's/.*libcudnn.so .* => \(.*\)/\1/p')" |
| 224 | if [ -e "${CUDNN_PATH_FROM_LDCONFIG}${TF_CUDNN_EXT}" ]; then |
A. Unique TensorFlower | b0bdff4 | 2016-08-26 12:50:48 -0800 | [diff] [blame] | 225 | export TF_CUDNN_VERSION |
A. Unique TensorFlower | 2c598e8 | 2016-08-25 10:22:44 -0800 | [diff] [blame] | 226 | export CUDNN_INSTALL_PATH="$(dirname ${CUDNN_PATH_FROM_LDCONFIG})" |
A. Unique TensorFlower | 8bf6ef1 | 2016-05-05 08:36:05 -0800 | [diff] [blame] | 227 | break |
| 228 | fi |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 229 | fi |
A. Unique TensorFlower | 8bf6ef1 | 2016-05-05 08:36:05 -0800 | [diff] [blame] | 230 | echo "Invalid path to cuDNN ${CUDNN_VERSION} toolkit. Neither of the following two files can be found:" |
| 231 | echo "${CUDNN_INSTALL_PATH}/${CUDA_DNN_LIB_PATH}" |
| 232 | echo "${CUDNN_INSTALL_PATH}/${CUDA_DNN_LIB_ALT_PATH}" |
| 233 | if [ "$OSNAME" == "Linux" ]; then |
| 234 | echo "${CUDNN_PATH_FROM_LDCONFIG}${TF_CUDNN_EXT}" |
| 235 | fi |
| 236 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 237 | if [ -z "$fromuser" ]; then |
| 238 | exit 1 |
| 239 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 240 | # Retry |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 241 | TF_CUDNN_VERSION="" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 242 | CUDNN_INSTALL_PATH="" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 243 | done |
| 244 | |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 245 | # Configure the compute capabilities that TensorFlow builds for. |
| 246 | # Since Cuda toolkit is not backward-compatible, this is not guaranteed to work. |
| 247 | while true; do |
| 248 | fromuser="" |
A. Unique TensorFlower | 2c598e8 | 2016-08-25 10:22:44 -0800 | [diff] [blame] | 249 | default_cuda_compute_capabilities="3.5,5.2" |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 250 | if [ -z "$TF_CUDA_COMPUTE_CAPABILITIES" ]; then |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 251 | cat << EOF |
| 252 | Please specify a list of comma-separated Cuda compute capabilities you want to build with. |
| 253 | You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. |
| 254 | Please note that each additional compute capability significantly increases your build time and binary size. |
| 255 | EOF |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 256 | read -p "[Default is: \"3.5,5.2\"]: " TF_CUDA_COMPUTE_CAPABILITIES |
| 257 | fromuser=1 |
| 258 | fi |
A. Unique TensorFlower | 2c598e8 | 2016-08-25 10:22:44 -0800 | [diff] [blame] | 259 | if [ -z "$TF_CUDA_COMPUTE_CAPABILITIES" ]; then |
| 260 | TF_CUDA_COMPUTE_CAPABILITIES=$default_cuda_compute_capabilities |
| 261 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 262 | # Check whether all capabilities from the input is valid |
| 263 | COMPUTE_CAPABILITIES=${TF_CUDA_COMPUTE_CAPABILITIES//,/ } |
| 264 | ALL_VALID=1 |
| 265 | for CAPABILITY in $COMPUTE_CAPABILITIES; do |
| 266 | if [[ ! "$CAPABILITY" =~ [0-9]+.[0-9]+ ]]; then |
| 267 | echo "Invalid compute capability: " $CAPABILITY |
| 268 | ALL_VALID=0 |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 269 | break |
| 270 | fi |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 271 | done |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 272 | if [ "$ALL_VALID" == "0" ]; then |
| 273 | if [ -z "$fromuser" ]; then |
| 274 | exit 1 |
| 275 | fi |
| 276 | else |
A. Unique TensorFlower | b0bdff4 | 2016-08-26 12:50:48 -0800 | [diff] [blame] | 277 | export TF_CUDA_COMPUTE_CAPABILITIES |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 278 | break |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 279 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 280 | TF_CUDA_COMPUTE_CAPABILITIES="" |
| 281 | done |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 282 | |
A. Unique TensorFlower | 2c598e8 | 2016-08-25 10:22:44 -0800 | [diff] [blame] | 283 | bazel clean --expunge |
| 284 | bazel fetch //... |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 285 | |
| 286 | echo "Configuration finished" |