chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
@@ -0,0 +1,40 @@
# This bazelrc can build a CPU-supporting TF package.
# Set DEVELOPER_DIR to select a version of Xcode.
build --action_env DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
# Build TensorFlow v2
build --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
# Disable nccl support for macOS.
build --define=no_nccl_support=true
# Suppress all warning messages
build --output_filter=^$
# Disable MKL
build --define=tensorflow_mkldnn_contraction_kernel=0
# Settings for MacOS on ARM CPUs.
build --cpu=darwin_arm64
build --macos_minimum_os=12.0
build --action_env MACOSX_DEPLOYMENT_TARGET=12.0
# Test-related settings below this point.
test --verbose_failures=true --local_test_jobs=HOST_CPUS --test_output=errors
# Increase the test timeout as tests often take longer on mac.
test --test_timeout=300,450,1200,3600
test --test_size_filters=small,medium
# Only build what is required to run the tests
test --build_tests_only --keep_going
# "nonpip" tests are regular py_test tests.
# Pass --config=nonpip_filters to run the same suite of tests. If you want to run just
# one test for investigation, you don't need --config=nonpip_filters; just run the
# bazel test invocation as normal.
test:nonpip_filters --test_tag_filters=-no_oss,-oss_excluded,-oss_serial,-no_oss_py39,-no_oss_py310,-nomac,-no_mac,-mac_excluded,-v1only,-gpu,-tpu,-benchmark-test,-no_mac_arm64,-no_aarch64
test:nonpip_filters --build_tag_filters=-no_oss,-oss_excluded,-oss_serial,-no_oss_py39,-no_oss_py310,-nomac,-no_mac,-mac_excluded,-v1only,-gpu,-tpu,-benchmark-test,-no_mac_arm64,-no_aarch64
test:nonpip_filters --test_lang_filters=cc,py
test:nonpip --config=nonpip_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/compiler/xla/service/gpu/... -//tensorflow/compiler/xla/tools/multihost_hlo_runner/... -//tensorflow/core/tpu/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/tools/toolchains/... -//tensorflow/lite/... -//tensorflow/compiler/aot/... -//tensorflow/compiler/xla/tests:local_client_aot_test_computation -//tensorflow/compiler/xla/tests:local_client_aot_test_helper -//tensorflow/compiler/xla/tests:local_client_aot_test
@@ -0,0 +1,174 @@
/*
Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pipeline {
agent none
stages {
stage("Build Tensorflow") {
parallel {
stage("Python 3.9") {
agent {
label "nightly-build"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.9
}
steps {
dir('tensorflow') {
sh '''
pyenv init -
pyenv global 3.9.13
'''
sh 'python --version'
git branch: "nightly",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
python tensorflow/tools/ci_build/update_version.py --nightly
'''
// Install Pillow for metal plugin tests
sh 'pip install Pillow'
sh '''
/opt/homebrew/bin/bazel --bazelrc="${WORKSPACE}/tensorflow/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" build \
//tensorflow/tools/pip_package:build_pip_package
./bazel-bin/tensorflow/tools/pip_package/build_pip_package \
--nightly_flag \
--project_name "tf-nightly-macos" \
dist
'''
}
archiveArtifacts artifacts: "tensorflow/dist/*.whl", followSymlinks: false, onlyIfSuccessful: true
sh 'python ${WORKSPACE}/tensorflow/tensorflow/tools/ci_build/osx/arm64/tensorflow_metal_plugin_test.py'
}
}
stage("Python 3.10") {
agent {
label "nightly-build"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.10
}
steps {
dir('tensorflow') {
sh '''
pyenv init -
pyenv global 3.10.4
'''
sh 'python --version'
git branch: "nightly",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
python tensorflow/tools/ci_build/update_version.py --nightly
'''
// Install Pillow for metal plugin tests
sh 'pip install Pillow'
sh '''
/opt/homebrew/bin/bazel --bazelrc="${WORKSPACE}/tensorflow/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" build \
//tensorflow/tools/pip_package:build_pip_package
./bazel-bin/tensorflow/tools/pip_package/build_pip_package \
--nightly_flag \
--project_name "tf-nightly-macos" \
dist
'''
}
archiveArtifacts artifacts: "tensorflow/dist/*.whl", followSymlinks: false, onlyIfSuccessful: true
sh 'python ${WORKSPACE}/tensorflow/tensorflow/tools/ci_build/osx/arm64/tensorflow_metal_plugin_test.py'
}
}
stage("Python 3.11") {
agent {
label "nightly-build"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.11
}
steps {
dir('tensorflow') {
sh '''
pyenv init -
pyenv global 3.11.2
'''
sh 'python --version'
git branch: "nightly",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
python tensorflow/tools/ci_build/update_version.py --nightly
'''
// Install Pillow for metal plugin tests
sh 'pip install Pillow'
sh '''
/opt/homebrew/bin/bazel --bazelrc="${WORKSPACE}/tensorflow/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" build \
//tensorflow/tools/pip_package:build_pip_package
./bazel-bin/tensorflow/tools/pip_package/build_pip_package \
--nightly_flag \
--project_name "tf-nightly-macos" \
dist
'''
}
archiveArtifacts artifacts: "tensorflow/dist/*.whl", followSymlinks: false, onlyIfSuccessful: true
sh 'python ${WORKSPACE}/tensorflow/tensorflow/tools/ci_build/osx/arm64/tensorflow_metal_plugin_test.py'
}
}
}
}
}
post {
always {
build 'upload-nightly'
}
}
}
@@ -0,0 +1,148 @@
/*
Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pipeline {
agent none
environment {
RELEASE_BRANCH = 'r2.15'
}
stages {
stage("Build Tensorflow") {
parallel {
stage("Python 3.9") {
agent {
label "nightly-build-release"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.9
}
steps {
dir('tensorflow') {
sh '''
pyenv init -
pyenv global 3.9.13
'''
sh 'python --version'
git branch: "${RELEASE_BRANCH}",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
'''
sh '''
/opt/homebrew/bin/bazel --bazelrc="${WORKSPACE}/tensorflow/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" build \
//tensorflow/tools/pip_package:build_pip_package
./bazel-bin/tensorflow/tools/pip_package/build_pip_package \
--project_name tensorflow_macos \
dist
'''
}
archiveArtifacts artifacts: "tensorflow/dist/*.whl", followSymlinks: false, onlyIfSuccessful: true
}
}
stage("Python 3.10") {
agent {
label "nightly-build-release"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.10
}
steps {
dir('tensorflow') {
sh '''
pyenv init -
pyenv global 3.10.4
'''
sh 'python --version'
git branch: "${RELEASE_BRANCH}",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
'''
sh '''
/opt/homebrew/bin/bazel --bazelrc="${WORKSPACE}/tensorflow/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" build \
//tensorflow/tools/pip_package:build_pip_package
./bazel-bin/tensorflow/tools/pip_package/build_pip_package \
--project_name tensorflow_macos \
dist
'''
}
archiveArtifacts artifacts: "tensorflow/dist/*.whl", followSymlinks: false, onlyIfSuccessful: true
}
}
stage("Python 3.11") {
agent {
label "nightly-build-release"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.11
}
steps {
dir('tensorflow') {
sh '''
pyenv init -
pyenv global 3.11.2
'''
sh 'python --version'
git branch: "${RELEASE_BRANCH}",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
'''
sh '''
/opt/homebrew/bin/bazel --bazelrc="${WORKSPACE}/tensorflow/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" build \
//tensorflow/tools/pip_package:build_pip_package
./bazel-bin/tensorflow/tools/pip_package/build_pip_package \
--project_name tensorflow_macos \
dist
'''
}
archiveArtifacts artifacts: "tensorflow/dist/*.whl", followSymlinks: false, onlyIfSuccessful: true
}
}
}
}
}
}
@@ -0,0 +1,59 @@
/*
Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pipeline {
agent none
stages {
stage("Build Tensorflow") {
parallel {
stage("Python 3.11") {
agent {
label "silicon-ci"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.11
}
steps {
sh '''
echo 3.11.2 > /Users/admin/.python-version
pyenv init -
pyenv global 3.11.2
'''
sh 'python --version'
git branch: "master",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
'''
sh '''
bazel --bazelrc="${WORKSPACE}/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" test \
--config=nonpip
'''
}
}
}
}
}
}
@@ -0,0 +1,126 @@
/*
Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pipeline {
agent none
stages {
stage("Build Tensorflow") {
parallel {
stage("Python 3.9") {
agent {
label "silicon-ci"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.9
}
steps {
sh '''
echo 3.9.13 > /Users/admin/.python-version
pyenv init -
pyenv global 3.9.13
'''
sh 'python --version'
git branch: "nightly",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
'''
sh '''
bazel --bazelrc="${WORKSPACE}/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" test \
--config=nonpip
'''
}
}
stage("Python 3.10") {
agent {
label "silicon-ci"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.10
}
steps {
sh '''
echo 3.10.4 > /Users/admin/.python-version
pyenv init -
pyenv global 3.10.4
'''
sh 'python --version'
git branch: "nightly",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
'''
sh '''
bazel --bazelrc="${WORKSPACE}/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" test \
--config=nonpip
'''
}
}
stage("Python 3.11") {
agent {
label "silicon-ci"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.11
}
steps {
sh '''
echo 3.11.2 > /Users/admin/.python-version
pyenv init -
pyenv global 3.11.2
'''
sh 'python --version'
git branch: "nightly",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
'''
sh '''
bazel --bazelrc="${WORKSPACE}/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" test \
--config=nonpip
'''
}
}
}
}
}
}
@@ -0,0 +1,127 @@
/*
Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pipeline {
agent none
environment {
RELEASE_BRANCH = 'r2.15'
}
stages {
stage("Build Tensorflow") {
parallel {
stage("Python 3.9") {
agent {
label "silicon-ci-release"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.9
}
steps {
sh '''
echo 3.9.13 > /Users/admin/.python-version
pyenv init -
pyenv global 3.9.13
'''
sh 'python --version'
git branch: "${RELEASE_BRANCH}",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
'''
sh '''
bazel --bazelrc="${WORKSPACE}/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" test \
--config=nonpip
'''
}
}
stage("Python 3.10") {
agent {
label "silicon-ci-release"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.10
}
steps {
sh '''
echo 3.10.4 > /Users/admin/.python-version
pyenv init -
pyenv global 3.10.4
'''
sh 'python --version'
git branch: "${RELEASE_BRANCH}",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
'''
sh '''
bazel --bazelrc="${WORKSPACE}/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" test \
--config=nonpip
'''
}
}
stage("Python 3.11") {
agent {
label "silicon-ci-release"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TF_PYTHON_VERSION=3.11
}
steps {
sh '''
echo 3.11.2 > /Users/admin/.python-version
pyenv init -
pyenv global 3.11.2
'''
sh 'python --version'
git branch: "${RELEASE_BRANCH}",
url: "https://github.com/tensorflow/tensorflow.git"
sh '''
pip install --upgrade pip
pip install -r ./tensorflow/tools/ci_build/release/requirements_mac.txt
'''
sh '''
bazel --bazelrc="${WORKSPACE}/tensorflow/tools/ci_build/osx/arm64/.macos.bazelrc" test \
--config=nonpip
'''
}
}
}
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,36 @@
/*
Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pipeline {
agent none
stages {
stage("Build Apple Silicon Nightly") {
parallel {
stage("Build Nightly Wheel") {
steps {
build 'tensorflow-as-build-nightly'
}
}
stage("Run Non PIP Test Suite") {
steps {
build 'tensorflow-as-test-nightly'
}
}
}
}
}
}
@@ -0,0 +1,35 @@
/*
Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pipeline {
agent none
stages {
stage("Build Apple Silicon Release") {
parallel {
stage("Build Nightly Wheel") {
steps {
build 'tensorflow-as-build-release'
}
}
stage("Run Non PIP Test Suite") {
steps {
build 'tensorflow-as-test-release'
}
}
}
}
}
}
@@ -0,0 +1,45 @@
/*
Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pipeline {
agent {
label "nightly-upload"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TWINE_NON_INTERACTIVE=true
}
stages {
stage('build') {
steps {
git 'https://github.com/tensorflow/tensorflow'
sh 'mkdir dist'
copyArtifacts fingerprintArtifacts: true, projectName: 'tensorflow-as-build-nightly', selector: upstream()
sh 'pyenv global 3.10.10'
withCredentials([string(credentialsId: 'ef67da81-2d62-4ae6-a200-cbd2bcab8429', variable: 'PYPI_API_TOKEN')]) {
sh 'twine check tensorflow/dist/*'
sh 'twine upload tensorflow/dist/* -u __token__ -p $PYPI_API_TOKEN --verbose --disable-progress-bar'
}
}
}
}
}
@@ -0,0 +1,45 @@
/*
Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
pipeline {
agent {
label "nightly-upload"
}
environment {
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/shims:/opt/homebrew/bin/:$PATH"
TWINE_NON_INTERACTIVE=true
}
stages {
stage('build') {
steps {
git 'https://github.com/tensorflow/tensorflow'
sh 'mkdir dist'
copyArtifacts fingerprintArtifacts: true, projectName: 'tensorflow-as-build-release', selector: lastSuccessful()
sh 'pyenv global 3.10.10'
withCredentials([string(credentialsId: 'ef67da81-2d62-4ae6-a200-cbd2bcab8429', variable: 'PYPI_API_TOKEN')]) {
sh 'twine check tensorflow/dist/*'
sh 'twine upload tensorflow/dist/* -u __token__ -p $PYPI_API_TOKEN --verbose --disable-progress-bar'
}
}
}
}
}
+39
View File
@@ -0,0 +1,39 @@
#!/usr/bin/env bash
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ==============================================================================
set -e
set -x
N_JOBS=$(sysctl -n hw.ncpu)
N_JOBS=$((N_JOBS+1))
echo ""
echo "Bazel will use ${N_JOBS} concurrent job(s)."
echo ""
# Run configure.
export TF_NEED_CUDA=0
export CC_OPT_FLAGS='-mavx'
export PYTHON_BIN_PATH=$(which python2)
yes "" | $PYTHON_BIN_PATH configure.py
which bazel
# TODO(b/122370901): Fix nomac, no_mac inconsistency.
bazel test --test_tag_filters=-no_oss,-oss_excluded,-gpu,-tpu,-benchmark-test,-nomac,-no_mac,-mac_excluded \
--test_timeout 300,450,1200,3600 \
--test_size_filters=small,medium --config=opt \
--jobs=${N_JOBS} --build_tests_only --test_output=errors -k -- \
//tensorflow/contrib/... -//tensorflow/lite/...
+41
View File
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ==============================================================================
set -e
set -x
N_JOBS=$(sysctl -n hw.ncpu)
N_JOBS=$((N_JOBS+1))
echo ""
echo "Bazel will use ${N_JOBS} concurrent job(s)."
echo ""
# Run configure.
export TF_NEED_CUDA=0
export TF_NEED_ROCM=0
export CC_OPT_FLAGS='-mavx'
export PYTHON_BIN_PATH=$(which python2)
yes "" | $PYTHON_BIN_PATH configure.py
which bazel
# TODO(b/122370901): Fix nomac, no_mac inconsistency.
bazel test --test_tag_filters=-no_oss,-oss_excluded,-gpu,-tpu,-benchmark-test,-nomac,-no_mac,-mac_excluded \
--test_timeout 300,450,1200,3600 --config=opt \
--announce_rc \
--test_size_filters=small,medium \
--jobs=${N_JOBS} --build_tests_only --test_output=errors -k -- \
//tensorflow/... -//tensorflow/compiler/... -//tensorflow/contrib/...
+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ==============================================================================
set -e
set -x
N_JOBS=$(sysctl -n hw.ncpu)
N_JOBS=$((N_JOBS+1))
echo ""
echo "Bazel will use ${N_JOBS} concurrent job(s)."
echo ""
# Run configure.
export TF_NEED_CUDA=0
export PYTHON_BIN_PATH=$(which python3)
yes "" | $PYTHON_BIN_PATH configure.py
which bazel
bazel test --test_tag_filters=-no_oss,-oss_excluded,-gpu,-tpu,-benchmark-test,-nomac,-no_mac,-mac_excluded \
--announce_rc \
--test_timeout 300,450,1200,3600 \
--test_size_filters=small,medium \
--jobs=${N_JOBS} --build_tests_only --test_output=errors -k -- \
//tensorflow/... -//tensorflow/compiler/... -//tensorflow/contrib/...