Pick up nightly script changes from master
PiperOrigin-RevId: 325071992 Change-Id: I16d6a48729039001c7f3551a31053a9232d3b824
This commit is contained in:
parent
bbc57503e6
commit
ebf88156d0
@ -13,11 +13,21 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# ==============================================================================
|
||||
|
||||
set -e
|
||||
set -x
|
||||
echo "chmod go+w lib_package/*" >> tensorflow/tools/ci_build/linux/libtensorflow.sh
|
||||
echo "bazel clean --expunge" >> tensorflow/tools/ci_build/linux/libtensorflow.sh
|
||||
|
||||
# Install latest bazel
|
||||
source tensorflow/tools/ci_build/release/common.sh
|
||||
install_bazelisk
|
||||
|
||||
# Pick a version of xcode
|
||||
export DEVELOPER_DIR=/Applications/Xcode_10.3.app/Contents/Developer
|
||||
sudo xcode-select -s "${DEVELOPER_DIR}"
|
||||
|
||||
# Update the version string to nightly
|
||||
./tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
tensorflow/tools/ci_build/osx/libtensorflow_cpu.sh
|
||||
|
||||
# Copy the nightly version update script
|
||||
cp tensorflow/tools/ci_build/builds/libtensorflow_nightly_symlink.sh lib_package
|
||||
|
@ -33,13 +33,11 @@ export TF_PYTHON_VERSION='python3.5'
|
||||
export TF_BUILD_BOTH_CPU_PACKAGES=1
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_CUDA=0
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2"
|
||||
export TF_BUILD_FLAGS="--config=release_cpu_macos"
|
||||
export TF_TEST_FLAGS="--define=no_tensorflow_py_deps=true --test_lang_filters=py --test_output=errors --verbose_failures=true --keep_going --test_env=TF2_BEHAVIOR=1"
|
||||
export TF_TEST_TARGETS="//tensorflow/python/..."
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
|
@ -33,13 +33,11 @@ export TF_PYTHON_VERSION='python3.6'
|
||||
export TF_BUILD_BOTH_CPU_PACKAGES=1
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_CUDA=0
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2"
|
||||
export TF_BUILD_FLAGS="--config=release_cpu_macos"
|
||||
export TF_TEST_FLAGS="--define=no_tensorflow_py_deps=true --test_lang_filters=py --test_output=errors --verbose_failures=true --keep_going --test_env=TF2_BEHAVIOR=1"
|
||||
export TF_TEST_TARGETS="//tensorflow/python/..."
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
|
@ -33,13 +33,11 @@ export TF_PYTHON_VERSION='python3.7'
|
||||
export TF_BUILD_BOTH_CPU_PACKAGES=1
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_CUDA=0
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2"
|
||||
export TF_BUILD_FLAGS="--config=release_cpu_macos"
|
||||
export TF_TEST_FLAGS="--define=no_tensorflow_py_deps=true --test_lang_filters=py --test_output=errors --verbose_failures=true --keep_going --test_env=TF2_BEHAVIOR=1"
|
||||
export TF_TEST_TARGETS="//tensorflow/python/..."
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
|
0
tensorflow/tools/ci_build/rel/macos/cpu_py38_nonpip.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/macos/cpu_py38_nonpip.sh
Executable file → Normal file
@ -33,13 +33,11 @@ export TF_PYTHON_VERSION='python3.8'
|
||||
export TF_BUILD_BOTH_CPU_PACKAGES=1
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_CUDA=0
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2"
|
||||
export TF_BUILD_FLAGS="--config=release_cpu_macos"
|
||||
export TF_TEST_FLAGS="--define=no_tensorflow_py_deps=true --test_lang_filters=py --test_output=errors --verbose_failures=true --keep_going --test_env=TF2_BEHAVIOR=1"
|
||||
export TF_TEST_TARGETS="//tensorflow/python/..."
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
|
0
tensorflow/tools/ci_build/rel/ubuntu/cpu_libtensorflow.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/cpu_libtensorflow.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/cpu_py35_nonpip.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/cpu_py35_nonpip.sh
Executable file → Normal file
7
tensorflow/tools/ci_build/rel/ubuntu/cpu_py35_pip.sh
Executable file → Normal file
7
tensorflow/tools/ci_build/rel/ubuntu/cpu_py35_pip.sh
Executable file → Normal file
@ -28,11 +28,6 @@ export CONTAINER_TYPE="CPU"
|
||||
export TF_PYTHON_VERSION='python3.5'
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
export TF_NEED_HDFS=1
|
||||
export TF_NEED_S3=1
|
||||
export TF_NEED_CUDA=0
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
@ -40,7 +35,7 @@ yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
source tensorflow/tools/ci_build/build_scripts/DEFAULT_TEST_TARGETS.sh
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2 --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain"
|
||||
export TF_BUILD_FLAGS="--config=release_cpu_linux"
|
||||
export TF_TEST_FLAGS="--define=no_tensorflow_py_deps=true --test_lang_filters=py --test_output=errors --verbose_failures=true --keep_going --test_env=TF2_BEHAVIOR=1"
|
||||
export TF_TEST_TARGETS="${DEFAULT_BAZEL_TARGETS} -//tensorflow/lite/... "
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
|
0
tensorflow/tools/ci_build/rel/ubuntu/cpu_py36_nonpip.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/cpu_py36_nonpip.sh
Executable file → Normal file
7
tensorflow/tools/ci_build/rel/ubuntu/cpu_py36_pip.sh
Executable file → Normal file
7
tensorflow/tools/ci_build/rel/ubuntu/cpu_py36_pip.sh
Executable file → Normal file
@ -28,11 +28,6 @@ export CONTAINER_TYPE="CPU"
|
||||
export TF_PYTHON_VERSION='python3.6'
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
export TF_NEED_HDFS=1
|
||||
export TF_NEED_S3=1
|
||||
export TF_NEED_CUDA=0
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
@ -40,7 +35,7 @@ yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
source tensorflow/tools/ci_build/build_scripts/DEFAULT_TEST_TARGETS.sh
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2 --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain"
|
||||
export TF_BUILD_FLAGS="--config=release_cpu_linux"
|
||||
export TF_TEST_FLAGS="--define=no_tensorflow_py_deps=true --test_lang_filters=py --test_output=errors --verbose_failures=true --keep_going --test_env=TF2_BEHAVIOR=1"
|
||||
export TF_TEST_TARGETS="${DEFAULT_BAZEL_TARGETS} -//tensorflow/lite/... "
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
|
0
tensorflow/tools/ci_build/rel/ubuntu/cpu_py37_nonpip.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/cpu_py37_nonpip.sh
Executable file → Normal file
7
tensorflow/tools/ci_build/rel/ubuntu/cpu_py37_pip.sh
Executable file → Normal file
7
tensorflow/tools/ci_build/rel/ubuntu/cpu_py37_pip.sh
Executable file → Normal file
@ -28,11 +28,6 @@ export CONTAINER_TYPE="CPU"
|
||||
export TF_PYTHON_VERSION='python3.7'
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
export TF_NEED_HDFS=1
|
||||
export TF_NEED_S3=1
|
||||
export TF_NEED_CUDA=0
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
@ -40,7 +35,7 @@ yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
source tensorflow/tools/ci_build/build_scripts/DEFAULT_TEST_TARGETS.sh
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2 --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain"
|
||||
export TF_BUILD_FLAGS="--config=release_cpu_linux"
|
||||
export TF_TEST_FLAGS="--define=no_tensorflow_py_deps=true --test_lang_filters=py --test_output=errors --verbose_failures=true --keep_going --test_env=TF2_BEHAVIOR=1"
|
||||
export TF_TEST_TARGETS="${DEFAULT_BAZEL_TARGETS} -//tensorflow/lite/... "
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
|
0
tensorflow/tools/ci_build/rel/ubuntu/cpu_py38_nonpip.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/cpu_py38_nonpip.sh
Executable file → Normal file
7
tensorflow/tools/ci_build/rel/ubuntu/cpu_py38_pip.sh
Executable file → Normal file
7
tensorflow/tools/ci_build/rel/ubuntu/cpu_py38_pip.sh
Executable file → Normal file
@ -28,11 +28,6 @@ export CONTAINER_TYPE="CPU"
|
||||
export TF_PYTHON_VERSION='python3.8'
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
export TF_NEED_HDFS=1
|
||||
export TF_NEED_S3=1
|
||||
export TF_NEED_CUDA=0
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
@ -40,7 +35,7 @@ yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
source tensorflow/tools/ci_build/build_scripts/DEFAULT_TEST_TARGETS.sh
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2 --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain"
|
||||
export TF_BUILD_FLAGS="--config=release_cpu_linux"
|
||||
export TF_TEST_FLAGS="--define=no_tensorflow_py_deps=true --test_lang_filters=py --test_output=errors --verbose_failures=true --keep_going --test_env=TF2_BEHAVIOR=1"
|
||||
export TF_TEST_TARGETS="${DEFAULT_BAZEL_TARGETS} -//tensorflow/lite/... "
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
|
0
tensorflow/tools/ci_build/rel/ubuntu/gpu_libtensorflow.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/gpu_libtensorflow.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/gpu_py35_nonpip.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/gpu_py35_nonpip.sh
Executable file → Normal file
20
tensorflow/tools/ci_build/rel/ubuntu/gpu_py35_pip.sh
Executable file → Normal file
20
tensorflow/tools/ci_build/rel/ubuntu/gpu_py35_pip.sh
Executable file → Normal file
@ -28,20 +28,7 @@ export CONTAINER_TYPE="GPU"
|
||||
export TF_PYTHON_VERSION='python3.5'
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
export TF_NEED_HDFS=1
|
||||
export TF_NEED_S3=1
|
||||
export TF_NEED_CUDA=1
|
||||
export TF_CUDA_VERSION=10
|
||||
export TF_CUDNN_VERSION=7
|
||||
export TF_NEED_TENSORRT=1
|
||||
export TENSORRT_INSTALL_PATH=/usr/local/tensorrt
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
export PROJECT_NAME="tensorflow_gpu"
|
||||
export LD_LIBRARY_PATH="/usr/local/cuda:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:$TENSORRT_INSTALL_PATH/lib"
|
||||
export TF_CUDA_COMPUTE_CAPABILITIES=sm_35,sm_37,sm_52,sm_60,sm_61,compute_70
|
||||
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Get the default test targets for bazel.
|
||||
@ -49,18 +36,17 @@ source tensorflow/tools/ci_build/build_scripts/DEFAULT_TEST_TARGETS.sh
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_TEST_FILTER_TAGS='gpu,requires-gpu,-no_gpu,-no_oss,-oss_serial,-no_oss_py35'
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2 --config=cuda --distinct_host_configuration=false \
|
||||
--action_env=TF_CUDA_VERSION --action_env=TF_CUDNN_VERSION --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain "
|
||||
export TF_BUILD_FLAGS="--config=release_gpu_linux "
|
||||
export TF_TEST_FLAGS="--test_tag_filters=${TF_TEST_FILTER_TAGS} --build_tag_filters=${TF_TEST_FILTER_TAGS} \
|
||||
--distinct_host_configuration=false \
|
||||
--action_env=TF_CUDA_VERSION --action_env=TF_CUDNN_VERSION --test_env=TF2_BEHAVIOR=1 \
|
||||
--action_env=TF_CUDA_VERSION=10 --action_env=TF_CUDNN_VERSION=7 --test_env=TF2_BEHAVIOR=1 \
|
||||
--config=cuda --test_output=errors --local_test_jobs=4 --test_lang_filters=py \
|
||||
--verbose_failures=true --keep_going --define=no_tensorflow_py_deps=true \
|
||||
--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute "
|
||||
export TF_TEST_TARGETS="${DEFAULT_BAZEL_TARGETS} -//tensorflow/lite/... "
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
#export IS_NIGHTLY=0 # Not nightly; uncomment if building from tf repo.
|
||||
export TF_PROJECT_NAME=${PROJECT_NAME}
|
||||
export TF_PROJECT_NAME="tensorflow_gpu"
|
||||
export TF_PIP_TEST_ROOT="pip_test"
|
||||
|
||||
# To build both tensorflow and tensorflow-gpu pip packages
|
||||
|
0
tensorflow/tools/ci_build/rel/ubuntu/gpu_py36_nonpip.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/gpu_py36_nonpip.sh
Executable file → Normal file
20
tensorflow/tools/ci_build/rel/ubuntu/gpu_py36_pip.sh
Executable file → Normal file
20
tensorflow/tools/ci_build/rel/ubuntu/gpu_py36_pip.sh
Executable file → Normal file
@ -28,20 +28,7 @@ export CONTAINER_TYPE="GPU"
|
||||
export TF_PYTHON_VERSION='python3.6'
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
export TF_NEED_HDFS=1
|
||||
export TF_NEED_S3=1
|
||||
export TF_NEED_CUDA=1
|
||||
export TF_CUDA_VERSION=10
|
||||
export TF_CUDNN_VERSION=7
|
||||
export TF_NEED_TENSORRT=1
|
||||
export TENSORRT_INSTALL_PATH=/usr/local/tensorrt
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
export PROJECT_NAME="tensorflow_gpu"
|
||||
export LD_LIBRARY_PATH="/usr/local/cuda:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:$TENSORRT_INSTALL_PATH/lib"
|
||||
export TF_CUDA_COMPUTE_CAPABILITIES=sm_35,sm_37,sm_52,sm_60,sm_61,compute_70
|
||||
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Get the default test targets for bazel.
|
||||
@ -49,18 +36,17 @@ source tensorflow/tools/ci_build/build_scripts/DEFAULT_TEST_TARGETS.sh
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_TEST_FILTER_TAGS='gpu,requires-gpu,-no_gpu,-no_oss,-oss_serial,-no_oss_py36'
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2 --config=cuda --distinct_host_configuration=false \
|
||||
--action_env=TF_CUDA_VERSION --action_env=TF_CUDNN_VERSION --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain "
|
||||
export TF_BUILD_FLAGS="--config=release_gpu_linux "
|
||||
export TF_TEST_FLAGS="--test_tag_filters=${TF_TEST_FILTER_TAGS} --build_tag_filters=${TF_TEST_FILTER_TAGS} \
|
||||
--distinct_host_configuration=false \
|
||||
--action_env=TF_CUDA_VERSION --action_env=TF_CUDNN_VERSION --test_env=TF2_BEHAVIOR=1 \
|
||||
--action_env=TF_CUDA_VERSION=10 --action_env=TF_CUDNN_VERSION=7 --test_env=TF2_BEHAVIOR=1 \
|
||||
--config=cuda --test_output=errors --local_test_jobs=4 --test_lang_filters=py \
|
||||
--verbose_failures=true --keep_going --define=no_tensorflow_py_deps=true \
|
||||
--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute "
|
||||
export TF_TEST_TARGETS="${DEFAULT_BAZEL_TARGETS} -//tensorflow/lite/... "
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
#export IS_NIGHTLY=0 # Not nightly; uncomment if building from tf repo.
|
||||
export TF_PROJECT_NAME=${PROJECT_NAME}
|
||||
export TF_PROJECT_NAME=="tensorflow_gpu"
|
||||
export TF_PIP_TEST_ROOT="pip_test"
|
||||
|
||||
# To build both tensorflow and tensorflow-gpu pip packages
|
||||
|
0
tensorflow/tools/ci_build/rel/ubuntu/gpu_py37_nonpip.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/gpu_py37_nonpip.sh
Executable file → Normal file
20
tensorflow/tools/ci_build/rel/ubuntu/gpu_py37_pip.sh
Executable file → Normal file
20
tensorflow/tools/ci_build/rel/ubuntu/gpu_py37_pip.sh
Executable file → Normal file
@ -28,20 +28,7 @@ export CONTAINER_TYPE="GPU"
|
||||
export TF_PYTHON_VERSION='python3.7'
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
export TF_NEED_HDFS=1
|
||||
export TF_NEED_S3=1
|
||||
export TF_NEED_CUDA=1
|
||||
export TF_CUDA_VERSION=10
|
||||
export TF_CUDNN_VERSION=7
|
||||
export TF_NEED_TENSORRT=1
|
||||
export TENSORRT_INSTALL_PATH=/usr/local/tensorrt
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
export PROJECT_NAME="tensorflow_gpu"
|
||||
export LD_LIBRARY_PATH="/usr/local/cuda:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:$TENSORRT_INSTALL_PATH/lib"
|
||||
export TF_CUDA_COMPUTE_CAPABILITIES=sm_35,sm_37,sm_52,sm_60,sm_61,compute_70
|
||||
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Get the default test targets for bazel.
|
||||
@ -49,18 +36,17 @@ source tensorflow/tools/ci_build/build_scripts/DEFAULT_TEST_TARGETS.sh
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_TEST_FILTER_TAGS='gpu,requires-gpu,-no_gpu,-no_oss,-oss_serial,-no_oss_py37'
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2 --config=cuda --distinct_host_configuration=false \
|
||||
--action_env=TF_CUDA_VERSION --action_env=TF_CUDNN_VERSION --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain "
|
||||
export TF_BUILD_FLAGS="--config=release_gpu_linux "
|
||||
export TF_TEST_FLAGS="--test_tag_filters=${TF_TEST_FILTER_TAGS} --build_tag_filters=${TF_TEST_FILTER_TAGS} \
|
||||
--distinct_host_configuration=false \
|
||||
--action_env=TF_CUDA_VERSION --action_env=TF_CUDNN_VERSION --test_env=TF2_BEHAVIOR=1 \
|
||||
--action_env=TF_CUDA_VERSION=10 --action_env=TF_CUDNN_VERSION=7 --test_env=TF2_BEHAVIOR=1 \
|
||||
--config=cuda --test_output=errors --local_test_jobs=4 --test_lang_filters=py \
|
||||
--verbose_failures=true --keep_going --define=no_tensorflow_py_deps=true \
|
||||
--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute "
|
||||
export TF_TEST_TARGETS="${DEFAULT_BAZEL_TARGETS} -//tensorflow/lite/... "
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
#export IS_NIGHTLY=0 # Not nightly; uncomment if building from tf repo.
|
||||
export TF_PROJECT_NAME=${PROJECT_NAME}
|
||||
export TF_PROJECT_NAME=="tensorflow_gpu"
|
||||
export TF_PIP_TEST_ROOT="pip_test"
|
||||
|
||||
# To build both tensorflow and tensorflow-gpu pip packages
|
||||
|
0
tensorflow/tools/ci_build/rel/ubuntu/gpu_py38_nonpip.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/gpu_py38_nonpip.sh
Executable file → Normal file
20
tensorflow/tools/ci_build/rel/ubuntu/gpu_py38_pip.sh
Executable file → Normal file
20
tensorflow/tools/ci_build/rel/ubuntu/gpu_py38_pip.sh
Executable file → Normal file
@ -28,20 +28,7 @@ export CONTAINER_TYPE="GPU"
|
||||
export TF_PYTHON_VERSION='python3.8'
|
||||
|
||||
# Run configure.
|
||||
export TF_NEED_GCP=1
|
||||
export TF_NEED_HDFS=1
|
||||
export TF_NEED_S3=1
|
||||
export TF_NEED_CUDA=1
|
||||
export TF_CUDA_VERSION=10
|
||||
export TF_CUDNN_VERSION=7
|
||||
export TF_NEED_TENSORRT=1
|
||||
export TENSORRT_INSTALL_PATH=/usr/local/tensorrt
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which ${TF_PYTHON_VERSION})
|
||||
export PROJECT_NAME="tensorflow_gpu"
|
||||
export LD_LIBRARY_PATH="/usr/local/cuda:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:$TENSORRT_INSTALL_PATH/lib"
|
||||
export TF_CUDA_COMPUTE_CAPABILITIES=sm_35,sm_37,sm_52,sm_60,sm_61,compute_70
|
||||
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Get the default test targets for bazel.
|
||||
@ -49,18 +36,17 @@ source tensorflow/tools/ci_build/build_scripts/DEFAULT_TEST_TARGETS.sh
|
||||
|
||||
# Export optional variables for running pip.sh
|
||||
export TF_TEST_FILTER_TAGS='gpu,requires-gpu,-no_gpu,-no_oss,-oss_serial,-no_oss_py38'
|
||||
export TF_BUILD_FLAGS="--config=opt --config=v2 --config=cuda --distinct_host_configuration=false \
|
||||
--action_env=TF_CUDA_VERSION --action_env=TF_CUDNN_VERSION --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain "
|
||||
export TF_BUILD_FLAGS="--config=release_gpu_linux "
|
||||
export TF_TEST_FLAGS="--test_tag_filters=${TF_TEST_FILTER_TAGS} --build_tag_filters=${TF_TEST_FILTER_TAGS} \
|
||||
--distinct_host_configuration=false \
|
||||
--action_env=TF_CUDA_VERSION --action_env=TF_CUDNN_VERSION --test_env=TF2_BEHAVIOR=1 \
|
||||
--action_env=TF_CUDA_VERSION=10 --action_env=TF_CUDNN_VERSION=7 --test_env=TF2_BEHAVIOR=1 \
|
||||
--config=cuda --test_output=errors --local_test_jobs=4 --test_lang_filters=py \
|
||||
--verbose_failures=true --keep_going --define=no_tensorflow_py_deps=true \
|
||||
--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute "
|
||||
export TF_TEST_TARGETS="${DEFAULT_BAZEL_TARGETS} -//tensorflow/lite/... "
|
||||
export TF_PIP_TESTS="test_pip_virtualenv_non_clean test_pip_virtualenv_clean"
|
||||
#export IS_NIGHTLY=0 # Not nightly; uncomment if building from tf repo.
|
||||
export TF_PROJECT_NAME=${PROJECT_NAME}
|
||||
export TF_PROJECT_NAME=="tensorflow_gpu"
|
||||
export TF_PIP_TEST_ROOT="pip_test"
|
||||
|
||||
# To build both tensorflow and tensorflow-gpu pip packages
|
||||
|
0
tensorflow/tools/ci_build/rel/ubuntu/sanity.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/ubuntu/sanity.sh
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/windows/cpu_libtensorflow.bat
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/windows/cpu_libtensorflow.bat
Executable file → Normal file
2
tensorflow/tools/ci_build/rel/windows/cpu_py35.bat
Executable file → Normal file
2
tensorflow/tools/ci_build/rel/windows/cpu_py35.bat
Executable file → Normal file
@ -17,4 +17,4 @@ SET PYTHON_DIRECTORY=Python35
|
||||
|
||||
CALL tensorflow\tools\ci_build\release\common_win.bat
|
||||
|
||||
call tensorflow\tools\ci_build\windows\cpu\pip\run.bat --release_build --extra_build_flags "--config=v2 --define=no_tensorflow_py_deps=true" --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow_cpu"
|
||||
call tensorflow\tools\ci_build\windows\cpu\pip\run.bat --release_build --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow_cpu"
|
||||
|
2
tensorflow/tools/ci_build/rel/windows/cpu_py36.bat
Executable file → Normal file
2
tensorflow/tools/ci_build/rel/windows/cpu_py36.bat
Executable file → Normal file
@ -17,4 +17,4 @@ SET PYTHON_DIRECTORY=Python36
|
||||
|
||||
CALL tensorflow\tools\ci_build\release\common_win.bat
|
||||
|
||||
call tensorflow\tools\ci_build\windows\cpu\pip\run.bat --release_build --extra_build_flags "--config=v2 --define=no_tensorflow_py_deps=true" --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow_cpu"
|
||||
call tensorflow\tools\ci_build\windows\cpu\pip\run.bat --release_build --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow_cpu"
|
||||
|
2
tensorflow/tools/ci_build/rel/windows/cpu_py37.bat
Executable file → Normal file
2
tensorflow/tools/ci_build/rel/windows/cpu_py37.bat
Executable file → Normal file
@ -17,4 +17,4 @@ SET PYTHON_DIRECTORY=Python37
|
||||
|
||||
CALL tensorflow\tools\ci_build\release\common_win.bat
|
||||
|
||||
call tensorflow\tools\ci_build\windows\cpu\pip\run.bat --release_build --extra_build_flags "--config=v2 --define=no_tensorflow_py_deps=true" --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow_cpu"
|
||||
call tensorflow\tools\ci_build\windows\cpu\pip\run.bat --release_build --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow_cpu"
|
||||
|
2
tensorflow/tools/ci_build/rel/windows/cpu_py38.bat
Executable file → Normal file
2
tensorflow/tools/ci_build/rel/windows/cpu_py38.bat
Executable file → Normal file
@ -17,5 +17,5 @@ SET PYTHON_DIRECTORY=Python38
|
||||
|
||||
CALL tensorflow\tools\ci_build\release\common_win.bat
|
||||
|
||||
call tensorflow\tools\ci_build\windows\cpu\pip\run.bat --release_build --extra_build_flags "--config=v2 --define=no_tensorflow_py_deps=true" --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow_cpu"
|
||||
call tensorflow\tools\ci_build\windows\cpu\pip\run.bat --release_build --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow_cpu"
|
||||
|
||||
|
0
tensorflow/tools/ci_build/rel/windows/gpu_libtensorflow.bat
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/windows/gpu_libtensorflow.bat
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/windows/gpu_pip_on_cpu.bat
Executable file → Normal file
0
tensorflow/tools/ci_build/rel/windows/gpu_pip_on_cpu.bat
Executable file → Normal file
2
tensorflow/tools/ci_build/rel/windows/gpu_py35.bat
Executable file → Normal file
2
tensorflow/tools/ci_build/rel/windows/gpu_py35.bat
Executable file → Normal file
@ -17,7 +17,7 @@ SET PYTHON_DIRECTORY=Python35
|
||||
|
||||
CALL tensorflow\tools\ci_build\release\common_win.bat
|
||||
|
||||
call tensorflow\tools\ci_build\windows\gpu\pip\run.bat --release_build --extra_build_flags "--config=v2" --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow"
|
||||
call tensorflow\tools\ci_build\windows\gpu\pip\run.bat --release_build --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow"
|
||||
|
||||
for %%a in ("%~dp0\.") do set "PARENT_DIR=%%~nxa"
|
||||
bash -l tensorflow\tools\ci_build\release\windows\%PARENT_DIR%\release_pip_rename.sh
|
||||
|
2
tensorflow/tools/ci_build/rel/windows/gpu_py36.bat
Executable file → Normal file
2
tensorflow/tools/ci_build/rel/windows/gpu_py36.bat
Executable file → Normal file
@ -17,7 +17,7 @@ SET PYTHON_DIRECTORY=Python36
|
||||
|
||||
CALL tensorflow\tools\ci_build\release\common_win.bat
|
||||
|
||||
call tensorflow\tools\ci_build\windows\gpu\pip\run.bat --release_build --extra_build_flags "--config=v2" --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow"
|
||||
call tensorflow\tools\ci_build\windows\gpu\pip\run.bat --release_build --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow"
|
||||
|
||||
for %%a in ("%~dp0\.") do set "PARENT_DIR=%%~nxa"
|
||||
bash -l tensorflow\tools\ci_build\release\windows\%PARENT_DIR%\release_pip_rename.sh
|
2
tensorflow/tools/ci_build/rel/windows/gpu_py37.bat
Executable file → Normal file
2
tensorflow/tools/ci_build/rel/windows/gpu_py37.bat
Executable file → Normal file
@ -17,7 +17,7 @@ SET PYTHON_DIRECTORY=Python37
|
||||
|
||||
CALL tensorflow\tools\ci_build\release\common_win.bat
|
||||
|
||||
call tensorflow\tools\ci_build\windows\gpu\pip\run.bat --release_build --extra_build_flags "--config=v2" --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow"
|
||||
call tensorflow\tools\ci_build\windows\gpu\pip\run.bat --release_build --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow"
|
||||
|
||||
for %%a in ("%~dp0\.") do set "PARENT_DIR=%%~nxa"
|
||||
bash -l tensorflow\tools\ci_build\release\windows\%PARENT_DIR%\release_pip_rename.sh
|
2
tensorflow/tools/ci_build/rel/windows/gpu_py38.bat
Executable file → Normal file
2
tensorflow/tools/ci_build/rel/windows/gpu_py38.bat
Executable file → Normal file
@ -17,7 +17,7 @@ SET PYTHON_DIRECTORY=Python38
|
||||
|
||||
CALL tensorflow\tools\ci_build\release\common_win.bat
|
||||
|
||||
call tensorflow\tools\ci_build\windows\gpu\pip\run.bat --release_build --extra_build_flags "--config=v2" --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow"
|
||||
call tensorflow\tools\ci_build\windows\gpu\pip\run.bat --release_build --extra_test_flags "--test_env=TF2_BEHAVIOR=1" --project_name "tensorflow"
|
||||
|
||||
for %%a in ("%~dp0\.") do set "PARENT_DIR=%%~nxa"
|
||||
bash -l tensorflow\tools\ci_build\release\windows\%PARENT_DIR%\release_pip_rename.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user