From 2c598e874e6a7b6b3185846ce9bac97a7d5d0169 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Thu, 25 Aug 2016 10:22:44 -0800 Subject: Merge changes from github. Change: 131310818 --- configure | 73 +++++++++++++-------------------------------------------------- 1 file changed, 15 insertions(+), 58 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 9ab6ea6b1c..bcef37bd26 100755 --- a/configure +++ b/configure @@ -80,6 +80,7 @@ while [ "$TF_NEED_CUDA" == "" ]; do esac done +export TF_NEED_CUDA if [ "$TF_NEED_CUDA" == "0" ]; then echo "Configuration finished" exit @@ -97,6 +98,7 @@ while true; do fi fi if [ -e "$GCC_HOST_COMPILER_PATH" ]; then + export CC=$GCC_HOST_COMPILER_PATH break fi echo "Invalid gcc path. ${GCC_HOST_COMPILER_PATH} cannot be found" 1>&2 @@ -107,7 +109,6 @@ while true; do # Retry done - # Find out where the CUDA toolkit is installed OSNAME=`uname -s` @@ -140,6 +141,8 @@ while true; do fi if [ -e "${CUDA_TOOLKIT_PATH}/${CUDA_RT_LIB_PATH}" ]; then + export CUDA_TOOLKIT_PATH + export CUDA_VERSION=$TF_CUDA_VERSION break fi echo "Invalid path to CUDA $TF_CUDA_VERSION toolkit. ${CUDA_TOOLKIT_PATH}/${CUDA_RT_LIB_PATH} cannot be found" @@ -200,13 +203,16 @@ while true; do fi if [ -e "$CUDNN_INSTALL_PATH/${CUDA_DNN_LIB_ALT_PATH}" -o -e "$CUDNN_INSTALL_PATH/${CUDA_DNN_LIB_PATH}" ]; then + export CUDNN_VERSION=$TF_CUDNN_VERSION + export CUDNN_INSTALL_PATH break fi if [ "$OSNAME" == "Linux" ]; then CUDNN_PATH_FROM_LDCONFIG="$(ldconfig -p | sed -n 's/.*libcudnn.so .* => \(.*\)/\1/p')" if [ -e "${CUDNN_PATH_FROM_LDCONFIG}${TF_CUDNN_EXT}" ]; then - CUDNN_INSTALL_PATH="$(dirname ${CUDNN_PATH_FROM_LDCONFIG})" + export CUDNN_VERSION=$TF_CUDNN_VERSION + export CUDNN_INSTALL_PATH="$(dirname ${CUDNN_PATH_FROM_LDCONFIG})" break fi fi @@ -225,42 +231,11 @@ while true; do CUDNN_INSTALL_PATH="" done -cat > third_party/gpus/cuda/cuda.config <