Skip to content

Commit 9e60a2d

Browse files
Merge branch 'master' into aimran/handling_large_constant_xla
2 parents 9de005d + d944d5b commit 9e60a2d

File tree

4,679 files changed

+139450
-87584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,679 files changed

+139450
-87584
lines changed

.bazelrc

+13-12
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ build:cuda_clang --copt=-Qunused-arguments
242242
# major release. Example: sm_80 kernels can run on sm_89 GPUs but
243243
# not on sm_90 GPUs. compute_80 kernels though can also run on sm_90 GPUs.
244244
build:cuda_clang --repo_env=HERMETIC_CUDA_COMPUTE_CAPABILITIES="sm_60,sm_70,sm_80,sm_89,compute_90"
245+
# Permit newer CUDA versions than Clang is aware of
246+
build:cuda_clang --copt="-Wno-unknown-cuda-version"
245247
# Set lld as the linker.
246248
build:cuda_clang --host_linkopt="-fuse-ld=lld"
247249
build:cuda_clang --host_linkopt="-lm"
@@ -256,10 +258,11 @@ build:cuda_clang_official --action_env=CLANG_CUDA_COMPILER_PATH="/usr/lib/llvm-1
256258
build:cuda_clang_official --crosstool_top="@local_config_cuda//crosstool:toolchain"
257259

258260
# Build with nvcc for CUDA and clang for host
259-
build:nvcc_clang --config=cuda
260-
build:nvcc_clang --action_env=TF_NVCC_CLANG="1"
261-
build:nvcc_clang --@local_config_cuda//:cuda_compiler=nvcc
262-
261+
build:cuda_nvcc --config=cuda
262+
build:cuda_nvcc --action_env=TF_NVCC_CLANG="1"
263+
build:cuda_nvcc --@local_config_cuda//:cuda_compiler=nvcc
264+
# Old config for backward compatibility
265+
build:nvcc_clang --config=cuda_nvcc
263266

264267
# Debug config
265268
build:dbg -c dbg
@@ -329,8 +332,6 @@ build:linux --copt="-Werror=unused-result"
329332
# Add switch as an error on Linux.
330333
build:linux --copt="-Wswitch"
331334
build:linux --copt="-Werror=switch"
332-
# Required for building with clang
333-
build:linux --copt="-Wno-error=unused-but-set-variable"
334335

335336
# Linux ARM64 specific options
336337
build:linux_arm64 --copt="-mtune=generic" --copt="-march=armv8-a" --copt="-O3"
@@ -552,7 +553,7 @@ build:rbe_linux_cuda --config=rbe_linux_cpu
552553
build:rbe_linux_cuda --repo_env=REMOTE_GPU_TESTING=1
553554

554555
build:rbe_linux_cuda_nvcc --config=rbe_linux_cuda
555-
build:rbe_linux_cuda_nvcc --config=nvcc_clang
556+
build:rbe_linux_cuda_nvcc --config=cuda_nvcc
556557
build:rbe_linux_cuda_nvcc --repo_env TF_NCCL_USE_STUB=1
557558

558559
build:rbe_win_base --config=rbe_base
@@ -740,27 +741,27 @@ build:linux_libtensorflow_build --config=cuda_wheel -- //tensorflow/tools/lib_pa
740741
test:linux_cpu_wheel_test_filters --test_tag_filters=-no_oss,-oss_excluded,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-no_oss_py38,-no_oss_py39,-no_oss_py310
741742
test:linux_cpu_wheel_test_filters --build_tag_filters=-no_oss,-oss_excluded,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-no_oss_py38,-no_oss_py39,-no_oss_py310
742743
test:linux_cpu_wheel_test_filters --test_lang_filters=py --test_size_filters=small,medium
743-
test:linux_cpu_wheel_test --config=linux_cpu_wheel_test_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/...
744+
test:linux_cpu_wheel_test --@local_xla//xla/tsl:wheel_dependency=true --config=linux_cpu_wheel_test_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/...
744745
# CUDA WHEEL
745746
test:linux_cuda_wheel_test_filters --test_tag_filters=gpu,requires-gpu,-no_gpu,-no_oss,-oss_excluded,-oss_serial,-benchmark-test,-no_cuda11,-no_oss_py38,-no_oss_py39,-no_oss_py310
746747
test:linux_cuda_wheel_test_filters --build_tag_filters=gpu,requires-gpu,-no_gpu,-no_oss,-oss_excluded,-oss_serial,-benchmark-test,-no_cuda11,-no_oss_py38,-no_oss_py39,-no_oss_py310
747748
test:linux_cuda_wheel_test_filters --test_lang_filters=py --test_size_filters=small,medium
748-
test:linux_cuda_wheel_test --config=linux_cuda_wheel_test_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/...
749+
test:linux_cuda_wheel_test --@local_xla//xla/tsl:wheel_dependency=true --config=linux_cuda_wheel_test_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/...
749750
# ARM64 WHEEL
750751
test:linux_arm64_wheel_test_filters --test_tag_filters=-no_oss,-no_aarch64,-oss_excluded,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-no_oss_py38,-no_oss_py39,-no_oss_py310
751752
test:linux_arm64_wheel_test_filters --build_tag_filters=-no_oss,-no_aarch64,-oss_excluded,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-no_oss_py38,-no_oss_py39,-no_oss_py310
752753
test:linux_arm64_wheel_test_filters --test_lang_filters=py --test_size_filters=small,medium
753-
test:linux_arm64_wheel_test --config=linux_arm64_wheel_test_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/core/grappler/optimizers:auto_mixed_precision_test_cpu -//tensorflow/core/grappler/optimizers:remapper_test_cpu -//tensorflow/core/kernels/image:resize_bicubic_op_test
754+
test:linux_arm64_wheel_test --@local_xla//xla/tsl:wheel_dependency=true --config=linux_arm64_wheel_test_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/core/grappler/optimizers:auto_mixed_precision_test_cpu -//tensorflow/core/grappler/optimizers:remapper_test_cpu -//tensorflow/core/kernels/image:resize_bicubic_op_test
754755
# MACOS ARM64 WHEEL
755756
test:macos_arm64_wheel_test_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
756757
test:macos_arm64_wheel_test_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
757758
test:macos_arm64_wheel_test_filters --test_lang_filters=py --test_size_filters=small,medium
758-
test:macos_arm64_wheel_test --config=macos_arm64_wheel_test_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/compiler/aot/...
759+
test:macos_arm64_wheel_test --@local_xla//xla/tsl:wheel_dependency=true --config=macos_arm64_wheel_test_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/compiler/aot/...
759760
# MACOS X86 WHEEL
760761
test:macos_x86_wheel_test_filters --test_tag_filters=-no_oss,-oss_excluded,-oss_serial,-no_oss_py38,-no_oss_py39,-no_oss_py310,-nomac,-no_mac,-mac_excluded,-v1only,-gpu,-tpu,-benchmark-test
761762
test:macos_x86_wheel_test_filters --build_tag_filters=-no_oss,-oss_excluded,-oss_serial,-no_oss_py38,-no_oss_py39,-no_oss_py310,-nomac,-no_mac,-mac_excluded,-v1only,-gpu,-tpu,-benchmark-test
762763
test:macos_x86_wheel_test_filters --test_lang_filters=py --test_size_filters=small,medium
763-
test:macos_x86_wheel_test --config=macos_x86_wheel_test_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/compiler/aot/...
764+
test:macos_x86_wheel_test --@local_xla//xla/tsl:wheel_dependency=true --config=macos_x86_wheel_test_filters -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/compiler/aot/...
764765

765766
# PYCPP TESTS run a suite of Python and C++ tests to verify general correctness over
766767
# the whole TF code base. These are usually run continuously or upon presubmit.

.github/workflows/arm-cd.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ jobs:
5252
run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
5353
- name: Checkout repository for nightly (skipped for releases)
5454
if: ${{ github.event_name == 'schedule' }}
55-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
55+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
5656
with:
5757
ref: 'nightly'
5858
- name: Checkout repository for releases (skipped for nightly)
5959
if: ${{ github.event_name == 'push' }}
60-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
60+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
6161
- name: Build and test pip wheel
6262
shell: bash
6363
run: |

.github/workflows/arm-ci-extended-cpp.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ jobs:
5050
run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
5151
- name: Checkout repository for nightly (skipped for releases)
5252
if: ${{ github.event_name == 'schedule' }}
53-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
53+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
5454
with:
5555
ref: 'nightly'
5656
- name: Checkout repository
5757
if: ${{ github.event_name == 'push' }}
58-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
58+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
5959
- name: Build binary and run C++ tests
6060
shell: bash
6161
run: |

.github/workflows/arm-ci-extended.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ jobs:
5151
run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
5252
- name: Checkout repository for nightly (skipped for releases)
5353
if: ${{ github.event_name == 'schedule' }}
54-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
54+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
5555
with:
5656
ref: 'nightly'
5757
- name: Checkout repository
5858
if: ${{ github.event_name == 'push' }}
59-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
59+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
6060
- name: Build binary and run python tests on nightly for all python versions
6161
shell: bash
6262
run: |

.github/workflows/arm-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
shell: bash
4848
run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
4949
- name: Checkout repository
50-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
50+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
5151
- name: Build binary and run python tests
5252
shell: bash
5353
run: |

.github/workflows/cffconvert.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Check out a copy of the repository
33-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
33+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
3434

3535
- name: Check whether the citation metadata from CITATION.cff is valid
3636
uses: citation-file-format/cffconvert-github-action@4cf11baa70a673bfdf9dad0acc7ee33b3f4b6084 # v2.0.0

.github/workflows/issue-on-pr-rollback.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
startsWith(github.event.head_commit.message, 'Rollback of PR #')
3434
steps:
3535
- name: Checkout repo
36-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
36+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
3737
- name: Create a new Github Issue
3838
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
3939
with:

.github/workflows/osv-scanner-scheduled.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ permissions:
2828
jobs:
2929
scan-scheduled:
3030
if: github.repository == 'tensorflow/tensorflow'
31-
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.8.4"
31+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.8.5"
3232
with:
3333
scan-args: |-
3434
--lockfile=requirements.txt:./requirements_lock_3_9.txt

.github/workflows/pylint-presubmit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout code
31-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
31+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
3232
- name: Get file changes
3333
id: get_file_changes
3434
uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b # v1.2.4

.github/workflows/release-branch-cherrypick.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
if: github.repository == 'tensorflow/tensorflow' # Don't do this in forks
4646
steps:
4747
- name: Checkout code
48-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
48+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
4949
with:
5050
ref: ${{ github.event.inputs.release_branch }}
5151
- name: Get some helpful info for formatting
@@ -58,7 +58,7 @@ jobs:
5858
echo "SHORTSHA=$(git log -1 ${{ github.event.inputs.git_commit }} --format="%h")" >> "$GITHUB_OUTPUT"
5959
echo "TITLE=$(git log -1 ${{ github.event.inputs.git_commit }} --format="%s")" >> "$GITHUB_OUTPUT"
6060
- name: Create Pull Request with changes
61-
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
61+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
6262
with:
6363
title: '${{ github.event.inputs.release_branch }} cherry-pick: ${{ steps.cherrypick.outputs.SHORTSHA }} "${{ steps.cherrypick.outputs.TITLE }}"'
6464
committer: TensorFlow Release Automation <jenkins@tensorflow.org>

.github/workflows/scorecards-analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
- name: "Checkout code"
44-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
44+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
4545
with:
4646
persist-credentials: false
4747

@@ -64,6 +64,6 @@ jobs:
6464
# Upload the results to GitHub's code scanning dashboard (optional).
6565
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
6666
- name: "Upload to code-scanning"
67-
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
67+
uses: github/codeql-action/upload-sarif@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
6868
with:
6969
sarif_file: results.sarif

.github/workflows/sigbuild-docker-branch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: rm -rf /opt/hostedtoolcache
4141
-
4242
name: Checkout
43-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
43+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
4444
-
4545
name: Set up Docker Buildx
4646
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
@@ -67,7 +67,7 @@ jobs:
6767
-
6868
name: Build and push
6969
id: docker_build
70-
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
70+
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
7171
with:
7272
push: true
7373
context: ./tensorflow/tools/tf_sig_build_dockerfiles

.github/workflows/sigbuild-docker-presubmit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
df -h
4545
-
4646
name: Checkout
47-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
47+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
4848
-
4949
name: Set up Docker Buildx
5050
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
@@ -73,7 +73,7 @@ jobs:
7373
-
7474
name: Build containers, and push to GCR only if the 'build and push to gcr.io for staging' label is applied
7575
id: docker_build
76-
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
76+
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
7777
with:
7878
push: ${{ contains(github.event.pull_request.labels.*.name, 'build and push to gcr.io for staging') }}
7979
context: ./tensorflow/tools/tf_sig_build_dockerfiles

.github/workflows/sigbuild-docker.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: rm -rf /opt/hostedtoolcache
4444
-
4545
name: Checkout
46-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
46+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
4747
-
4848
name: Set up Docker Buildx
4949
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
@@ -82,7 +82,7 @@ jobs:
8282
-
8383
name: Build and push
8484
id: docker_build
85-
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
85+
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
8686
with:
8787
push: true
8888
context: ./tensorflow/tools/tf_sig_build_dockerfiles

.github/workflows/update-rbe.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
if: github.repository == 'tensorflow/tensorflow' # Don't do this in forks
3131
steps:
3232
- name: Checkout code
33-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
33+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
3434
- name: Update the RBE Configs
3535
run: |
3636
function map() {
@@ -130,7 +130,7 @@ jobs:
130130
map sigbuild-r2.17-clang-python3.11 2.17-python3.11
131131
map sigbuild-r2.17-clang-python3.12 2.17-python3.12
132132
- name: Create Pull Request with changes
133-
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
133+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
134134
with:
135135
title: Update the RBE images to the latest container versions
136136
committer: TensorFlow Release Automation <jenkins@tensorflow.org>

0 commit comments

Comments
 (0)