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 | |
Shanqing Cai | de6d48c | 2016-04-28 10:34:56 -0800 | [diff] [blame^] | 5 | ## Verify that the submodule google/protobuf is available |
| 6 | # TODO(cais): Remove this check once protobuf is no longer depended upon |
| 7 | if [[ ! -f "google/protobuf/protobuf.bzl" ]]; then |
| 8 | echo "ERROR: It appears that the required submodule google/protobuf is not "\ |
| 9 | "available in this TensorFlow git clone." |
| 10 | echo "Please be sure to use the --recurse-submodules flag when performing "\ |
| 11 | "git clone of TensorFlow." |
| 12 | |
| 13 | exit 1 |
| 14 | fi |
| 15 | |
Vijay Vasudevan | bf6b536 | 2015-12-02 15:04:40 -0800 | [diff] [blame] | 16 | ## Set up python-related environment settings |
| 17 | while true; do |
| 18 | fromuser="" |
| 19 | if [ -z "$PYTHON_BIN_PATH" ]; then |
| 20 | default_python_bin_path=$(which python) |
| 21 | read -p "Please specify the location of python. [Default is $default_python_bin_path]: " PYTHON_BIN_PATH |
| 22 | fromuser="1" |
| 23 | if [ -z "$PYTHON_BIN_PATH" ]; then |
| 24 | PYTHON_BIN_PATH=$default_python_bin_path |
| 25 | fi |
| 26 | fi |
| 27 | if [ -e "$PYTHON_BIN_PATH" ]; then |
| 28 | break |
| 29 | fi |
| 30 | echo "Invalid python path. ${PYTHON_BIN_PATH} cannot be found" 1>&2 |
| 31 | if [ -z "$fromuser" ]; then |
| 32 | exit 1 |
| 33 | fi |
| 34 | PYTHON_BIN_PATH="" |
| 35 | # Retry |
| 36 | done |
| 37 | |
Vijay Vasudevan | 80a5a3e | 2016-03-29 18:23:11 -0800 | [diff] [blame] | 38 | ## Find swig path |
| 39 | if [ -z "$SWIG_PATH" ]; then |
| 40 | SWIG_PATH=`type -p swig 2> /dev/null` |
| 41 | fi |
| 42 | if [[ ! -e "$SWIG_PATH" ]]; then |
| 43 | echo "Can't find swig. Ensure swig is in \$PATH or set \$SWIG_PATH." |
| 44 | exit 1 |
| 45 | fi |
| 46 | echo "$SWIG_PATH" > tensorflow/tools/swig/swig_path |
| 47 | |
Vijay Vasudevan | bf6b536 | 2015-12-02 15:04:40 -0800 | [diff] [blame] | 48 | # Invoke python_config and set up symlinks to python includes |
| 49 | (./util/python/python_config.sh --setup "$PYTHON_BIN_PATH";) || exit -1 |
| 50 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 51 | ## Set up Cuda-related environment settings |
| 52 | |
| 53 | while [ "$TF_NEED_CUDA" == "" ]; do |
Vijay Vasudevan | bf6b536 | 2015-12-02 15:04:40 -0800 | [diff] [blame] | 54 | 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] | 55 | case $INPUT in |
Vijay Vasudevan | bf6b536 | 2015-12-02 15:04:40 -0800 | [diff] [blame] | 56 | [Yy]* ) echo "GPU support will be enabled for TensorFlow"; TF_NEED_CUDA=1;; |
| 57 | [Nn]* ) echo "No GPU support will be enabled for TensorFlow"; TF_NEED_CUDA=0;; |
| 58 | "" ) 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] | 59 | * ) echo "Invalid selection: " $INPUT;; |
| 60 | esac |
| 61 | done |
| 62 | |
| 63 | if [ "$TF_NEED_CUDA" == "0" ]; then |
| 64 | echo "Configuration finished" |
| 65 | exit |
| 66 | fi |
| 67 | |
Vijay Vasudevan | 80a5a3e | 2016-03-29 18:23:11 -0800 | [diff] [blame] | 68 | # Set up which gcc nvcc should use as the host compiler |
| 69 | while true; do |
| 70 | fromuser="" |
| 71 | if [ -z "$GCC_HOST_COMPILER_PATH" ]; then |
| 72 | default_gcc_host_compiler_path=$(which gcc) |
| 73 | read -p "Please specify which gcc nvcc should use as the host compiler. [Default is $default_gcc_host_compiler_path]: " GCC_HOST_COMPILER_PATH |
| 74 | fromuser="1" |
| 75 | if [ -z "$GCC_HOST_COMPILER_PATH" ]; then |
| 76 | GCC_HOST_COMPILER_PATH=$default_gcc_host_compiler_path |
| 77 | fi |
| 78 | fi |
| 79 | if [ -e "$GCC_HOST_COMPILER_PATH" ]; then |
| 80 | break |
| 81 | fi |
| 82 | echo "Invalid gcc path. ${GCC_HOST_COMPILER_PATH} cannot be found" 1>&2 |
| 83 | if [ -z "$fromuser" ]; then |
| 84 | exit 1 |
| 85 | fi |
| 86 | GCC_HOST_COMPILER_PATH="" |
| 87 | # Retry |
| 88 | done |
| 89 | |
| 90 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 91 | # Find out where the CUDA toolkit is installed |
| 92 | while true; do |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 93 | # Configure the Cuda SDK version to use. |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 94 | if [ -z "$TF_CUDA_VERSION" ]; then |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 95 | 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] | 96 | fi |
| 97 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 98 | fromuser="" |
| 99 | if [ -z "$CUDA_TOOLKIT_PATH" ]; then |
| 100 | default_cuda_path=/usr/local/cuda |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 101 | 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] | 102 | fromuser="1" |
| 103 | if [ -z "$CUDA_TOOLKIT_PATH" ]; then |
| 104 | CUDA_TOOLKIT_PATH=$default_cuda_path |
| 105 | fi |
| 106 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 107 | if [[ -z "$TF_CUDA_VERSION" ]]; then |
| 108 | TF_CUDA_EXT="" |
| 109 | else |
| 110 | TF_CUDA_EXT=".$TF_CUDA_VERSION" |
| 111 | fi |
| 112 | if [ -e $CUDA_TOOLKIT_PATH/lib64/libcudart.so$TF_CUDA_EXT ]; then |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 113 | break |
| 114 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 115 | echo "Invalid path to CUDA $TF_CUDA_VERSION toolkit. $CUDA_TOOLKIT_PATH/lib64/libcudart.so$TF_CUDA_EXT cannot be found" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 116 | if [ -z "$fromuser" ]; then |
| 117 | exit 1 |
| 118 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 119 | # Retry |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 120 | TF_CUDA_VERSION="" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 121 | CUDA_TOOLKIT_PATH="" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 122 | done |
| 123 | |
Martin Wicke | 916776a | 2016-01-14 07:30:00 -0800 | [diff] [blame] | 124 | # Find out where the cuDNN library is installed |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 125 | while true; do |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 126 | # Configure the Cudnn version to use. |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 127 | if [ -z "$TF_CUDNN_VERSION" ]; then |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 128 | 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] | 129 | fi |
| 130 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 131 | fromuser="" |
| 132 | if [ -z "$CUDNN_INSTALL_PATH" ]; then |
| 133 | default_cudnn_path=${CUDA_TOOLKIT_PATH} |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 134 | 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] | 135 | fromuser="1" |
| 136 | if [ -z "$CUDNN_INSTALL_PATH" ]; then |
| 137 | CUDNN_INSTALL_PATH=$default_cudnn_path |
| 138 | fi |
| 139 | # Result returned from "read" will be used unexpanded. That make "~" unuseable. |
| 140 | # Going through one more level of expansion to handle that. |
| 141 | CUDNN_INSTALL_PATH=$(bash -c "readlink -f $CUDNN_INSTALL_PATH") |
| 142 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 143 | if [[ -z "$TF_CUDNN_VERSION" ]]; then |
| 144 | TF_CUDNN_EXT="" |
| 145 | else |
| 146 | TF_CUDNN_EXT=".$TF_CUDNN_VERSION" |
| 147 | fi |
Eugene Brevdo | 56f1d64 | 2016-03-10 17:18:30 -0800 | [diff] [blame] | 148 | if [ -e "$CUDNN_INSTALL_PATH/libcudnn.so${TF_CUDNN_EXT}" -o -e "$CUDNN_INSTALL_PATH/lib64/libcudnn.so${TF_CUDNN_EXT}" ]; then |
| 149 | break |
| 150 | fi |
| 151 | CUDNN_PATH_FROM_LDCONFIG="$(ldconfig -p | sed -n 's/.*libcudnn.so .* => \(.*\)/\1/p')" |
| 152 | if [ -e "${CUDNN_PATH_FROM_LDCONFIG}${TF_CUDNN_EXT}" ]; then |
| 153 | CUDNN_INSTALL_PATH="$(dirname ${CUDNN_PATH_FROM_LDCONFIG})" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 154 | break |
| 155 | fi |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 156 | echo "Invalid path to cuDNN ${TF_CUDNN_VERSION} toolkit. Neither of the following two files can be found:" |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 157 | echo "$CUDNN_INSTALL_PATH/lib64/libcudnn.so${TF_CUDNN_EXT}" |
| 158 | echo "$CUDNN_INSTALL_PATH/libcudnn.so${TF_CUDNN_EXT}" |
Eugene Brevdo | 56f1d64 | 2016-03-10 17:18:30 -0800 | [diff] [blame] | 159 | echo "${CUDNN_PATH_FROM_LDCONFIG}${TF_CUDNN_EXT}" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 160 | if [ -z "$fromuser" ]; then |
| 161 | exit 1 |
| 162 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 163 | # Retry |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 164 | TF_CUDNN_VERSION="" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 165 | CUDNN_INSTALL_PATH="" |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 166 | done |
| 167 | |
| 168 | cat > third_party/gpus/cuda/cuda.config <<EOF |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 169 | # CUDA_TOOLKIT_PATH refers to the CUDA toolkit. |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 170 | CUDA_TOOLKIT_PATH="$CUDA_TOOLKIT_PATH" |
| 171 | |
Martin Wicke | 916776a | 2016-01-14 07:30:00 -0800 | [diff] [blame] | 172 | # CUDNN_INSTALL_PATH refers to the cuDNN toolkit. The cuDNN header and library |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 173 | # files can be either in this directory, or under include/ and lib64/ |
| 174 | # directories separately. |
| 175 | CUDNN_INSTALL_PATH="$CUDNN_INSTALL_PATH" |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 176 | |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 177 | # The Cuda SDK version that should be used in this build (empty to use libcudart.so symlink) |
| 178 | TF_CUDA_VERSION=$TF_CUDA_EXT |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 179 | |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 180 | # The Cudnn version that should be used in this build (empty to use libcudnn.so symlink) |
| 181 | TF_CUDNN_VERSION=$TF_CUDNN_EXT |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 182 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 183 | EOF |
| 184 | |
Vijay Vasudevan | 80a5a3e | 2016-03-29 18:23:11 -0800 | [diff] [blame] | 185 | # Configure the gcc host compiler to use |
| 186 | export WARNING=$DO_NOT_SUBMIT_WARNING |
| 187 | perl -pi -e "s,CPU_COMPILER = \('.*'\),# \$ENV{WARNING}\nCPU_COMPILER = ('$GCC_HOST_COMPILER_PATH'),s" third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc |
| 188 | perl -pi -e "s,GCC_HOST_COMPILER_PATH = \('.*'\),# \$ENV{WARNING}\nGCC_HOST_COMPILER_PATH = ('$GCC_HOST_COMPILER_PATH'),s" third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc |
| 189 | |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 190 | # Configure the Cuda toolkit version to work with. |
Vijay Vasudevan | 97f6b6f | 2016-02-25 13:44:06 -0800 | [diff] [blame] | 191 | perl -pi -e "s,CUDA_VERSION = \"[0-9\.]*\",CUDA_VERSION = \"$TF_CUDA_EXT\",s" tensorflow/core/platform/default/build_config.bzl |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 192 | perl -pi -e "s,(GetCudaVersion.*return )\"[0-9\.]*\",\1\"$TF_CUDA_EXT\",s" tensorflow/stream_executor/dso_loader.cc |
A. Unique TensorFlower | 8a59748 | 2016-01-29 09:34:18 -0800 | [diff] [blame] | 193 | |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 194 | # Configure the Cudnn version to work with. |
Vijay Vasudevan | 97f6b6f | 2016-02-25 13:44:06 -0800 | [diff] [blame] | 195 | perl -pi -e "s,CUDNN_VERSION = \"[0-9\.]*\",CUDNN_VERSION = \"$TF_CUDNN_EXT\",s" tensorflow/core/platform/default/build_config.bzl |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 196 | perl -pi -e "s,(GetCudnnVersion.*return )\"[0-9\.]*\",\1\"$TF_CUDNN_EXT\",s" tensorflow/stream_executor/dso_loader.cc |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 197 | |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 198 | # Configure the compute capabilities that TensorFlow builds for. |
| 199 | # Since Cuda toolkit is not backward-compatible, this is not guaranteed to work. |
| 200 | while true; do |
| 201 | fromuser="" |
| 202 | if [ -z "$TF_CUDA_COMPUTE_CAPABILITIES" ]; then |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 203 | cat << EOF |
| 204 | Please specify a list of comma-separated Cuda compute capabilities you want to build with. |
| 205 | You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. |
| 206 | Please note that each additional compute capability significantly increases your build time and binary size. |
| 207 | EOF |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 208 | read -p "[Default is: \"3.5,5.2\"]: " TF_CUDA_COMPUTE_CAPABILITIES |
| 209 | fromuser=1 |
| 210 | fi |
| 211 | # Check whether all capabilities from the input is valid |
| 212 | COMPUTE_CAPABILITIES=${TF_CUDA_COMPUTE_CAPABILITIES//,/ } |
| 213 | ALL_VALID=1 |
| 214 | for CAPABILITY in $COMPUTE_CAPABILITIES; do |
| 215 | if [[ ! "$CAPABILITY" =~ [0-9]+.[0-9]+ ]]; then |
| 216 | echo "Invalid compute capability: " $CAPABILITY |
| 217 | ALL_VALID=0 |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 218 | break |
| 219 | fi |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 220 | done |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 221 | if [ "$ALL_VALID" == "0" ]; then |
| 222 | if [ -z "$fromuser" ]; then |
| 223 | exit 1 |
| 224 | fi |
| 225 | else |
| 226 | break |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 227 | fi |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 228 | TF_CUDA_COMPUTE_CAPABILITIES="" |
| 229 | done |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 230 | |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 231 | if [ ! -z "$TF_CUDA_COMPUTE_CAPABILITIES" ]; then |
Vijay Vasudevan | 80a5a3e | 2016-03-29 18:23:11 -0800 | [diff] [blame] | 232 | export WARNING=$DO_NOT_SUBMIT_WARNING |
Vijay Vasudevan | fe056f0 | 2016-02-17 11:42:30 -0800 | [diff] [blame] | 233 | function CudaGenCodeOpts() { |
| 234 | OUTPUT="" |
| 235 | for CAPABILITY in $@; do |
| 236 | OUTPUT=${OUTPUT}" \"${CAPABILITY}\", " |
| 237 | done |
| 238 | echo $OUTPUT |
| 239 | } |
| 240 | export CUDA_GEN_CODES_OPTS=$(CudaGenCodeOpts ${TF_CUDA_COMPUTE_CAPABILITIES//,/ }) |
| 241 | perl -pi -0 -e 's,\n( *)([^\n]*supported_cuda_compute_capabilities\s*=\s*\[).*?(\]),\n\1# $ENV{WARNING}\n\1\2$ENV{CUDA_GEN_CODES_OPTS}\3,s' third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc |
| 242 | function CudaVersionOpts() { |
| 243 | OUTPUT="" |
| 244 | for CAPABILITY in $@; do |
| 245 | OUTPUT=$OUTPUT"CudaVersion(\"${CAPABILITY}\"), " |
| 246 | done |
| 247 | echo $OUTPUT |
| 248 | } |
| 249 | export CUDA_VERSION_OPTS=$(CudaVersionOpts ${TF_CUDA_COMPUTE_CAPABILITIES//,/ }) |
| 250 | perl -pi -0 -e 's,\n( *)([^\n]*supported_cuda_compute_capabilities\s*=\s*\{).*?(\}),\n\1// $ENV{WARNING}\n\1\2$ENV{CUDA_VERSION_OPTS}\3,s' tensorflow/core/common_runtime/gpu/gpu_device.cc |
Vijay Vasudevan | 4dffee7 | 2015-11-12 11:27:00 -0800 | [diff] [blame] | 251 | fi |
| 252 | |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 253 | # Invoke the cuda_config.sh and set up the TensorFlow's canonical view of the Cuda libraries |
| 254 | (cd third_party/gpus/cuda; ./cuda_config.sh;) || exit -1 |
| 255 | |
| 256 | echo "Configuration finished" |