Migrate the Linux GPU nightly release scripts to use the new bazelrc configs.
PiperOrigin-RevId: 321623148 Change-Id: I5e9e5a7aa36099cfed1a2580217e6f9a011a31ec
This commit is contained in:
parent
0a22a9e96d
commit
0e9e9ea8c0
@ -32,7 +32,7 @@ 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 python3.5)
|
||||
export PYTHON_BIN_PATH=$(which python)
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Build the pip package
|
||||
|
||||
@ -25,23 +25,11 @@ install_bazelisk
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
# 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_CUDA_COMPUTE_CAPABILITIES=sm_35,sm_37,sm_52,sm_60,sm_61,compute_70
|
||||
export TF_NEED_TENSORRT=1
|
||||
export TENSORRT_INSTALL_PATH=/usr/local/tensorrt
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which python3.5)
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Build the pip package
|
||||
bazel build --config=opt --config=v2 \
|
||||
--crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain \
|
||||
tensorflow/tools/pip_package:build_pip_package
|
||||
bazel build --config=release_gpu_linux tensorflow/tools/pip_package:build_pip_package
|
||||
|
||||
./bazel-bin/tensorflow/tools/pip_package/build_pip_package pip_pkg --nightly_flag
|
||||
./bazel-bin/tensorflow/tools/pip_package/build_pip_package pip_pkg --gpu --nightly_flag
|
||||
|
||||
@ -25,23 +25,11 @@ install_bazelisk
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
# 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_CUDA_COMPUTE_CAPABILITIES=sm_35,sm_37,sm_52,sm_60,sm_61,compute_70
|
||||
export TF_NEED_TENSORRT=1
|
||||
export TENSORRT_INSTALL_PATH=/usr/local/tensorrt
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which python3.6)
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Build the pip package
|
||||
bazel build --config=opt --config=v2 \
|
||||
--crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain \
|
||||
tensorflow/tools/pip_package:build_pip_package
|
||||
bazel build --config=release_gpu_linux tensorflow/tools/pip_package:build_pip_package
|
||||
|
||||
./bazel-bin/tensorflow/tools/pip_package/build_pip_package pip_pkg --nightly_flag
|
||||
./bazel-bin/tensorflow/tools/pip_package/build_pip_package pip_pkg --gpu --nightly_flag
|
||||
|
||||
@ -25,23 +25,11 @@ install_bazelisk
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
# 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_CUDA_COMPUTE_CAPABILITIES=sm_35,sm_37,sm_52,sm_60,sm_61,compute_70
|
||||
export TF_NEED_TENSORRT=1
|
||||
export TENSORRT_INSTALL_PATH=/usr/local/tensorrt
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which python3.7)
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Build the pip package
|
||||
bazel build --config=opt --config=v2 \
|
||||
--crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain \
|
||||
tensorflow/tools/pip_package:build_pip_package
|
||||
bazel build --config=release_gpu_linux tensorflow/tools/pip_package:build_pip_package
|
||||
|
||||
./bazel-bin/tensorflow/tools/pip_package/build_pip_package pip_pkg --nightly_flag
|
||||
./bazel-bin/tensorflow/tools/pip_package/build_pip_package pip_pkg --gpu --nightly_flag
|
||||
|
||||
@ -27,23 +27,11 @@ update_bazel_linux
|
||||
python2.7 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
|
||||
# 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_CUDA_COMPUTE_CAPABILITIES=sm_35,sm_37,sm_52,sm_60,sm_61,compute_70
|
||||
export TF_NEED_TENSORRT=1
|
||||
export TENSORRT_INSTALL_PATH=/usr/local/tensorrt
|
||||
export CC_OPT_FLAGS='-mavx'
|
||||
export PYTHON_BIN_PATH=$(which python3.8)
|
||||
yes "" | "$PYTHON_BIN_PATH" configure.py
|
||||
|
||||
# Build the pip package
|
||||
bazel build --config=opt --config=v2 \
|
||||
--crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain \
|
||||
tensorflow/tools/pip_package:build_pip_package
|
||||
bazel build --config=release_gpu_linux tensorflow/tools/pip_package:build_pip_package
|
||||
|
||||
./bazel-bin/tensorflow/tools/pip_package/build_pip_package pip_pkg --nightly_flag
|
||||
./bazel-bin/tensorflow/tools/pip_package/build_pip_package pip_pkg --gpu --nightly_flag
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user