Merge pull request from geetachavan1/cherrypicks_XBAAK

[Cherrypick:r2.3] Fix libtensorflow CUDA compute capabilities.
This commit is contained in:
Mihai Maruseac 2020-10-01 15:55:26 -07:00 committed by GitHub
commit 483ccdffbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions
tensorflow/tools/ci_build

View File

@ -56,6 +56,7 @@ function build_libtensorflow_tarball() {
if [ "${TF_NEED_CUDA}" == "1" ]; then
BAZEL_OPTS="${BAZEL_OPTS} --config=cuda --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain"
export TF_NEED_ROCM=0
export TF_CUDA_COMPUTE_CAPABILITIES="sm_35,sm_50,sm_60,sm_70,sm_75,compute_80"
fi
bazel clean --expunge
yes "" | ./configure

View File

@ -19,5 +19,4 @@
set -ex
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export TF_NEED_CUDA=1
export TF_CUDA_COMPUTE_CAPABILITIES="sm_35,sm_50,sm_60,sm_70,sm_75,compute_80"
"${SCRIPT_DIR}/libtensorflow_docker.sh"