Skip to content

Commit 1d673b5

Browse files
authored
Merge pull request #3170 from ROCm/develop-upstream-sync-251224
Develop upstream sync 251224
2 parents 190ee01 + 3a69036 commit 1d673b5

2,460 files changed

Lines changed: 64330 additions & 45078 deletions

File tree

Some content is hidden

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

.bazelrc

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ common:apple-toolchain --host_crosstool_top=@local_config_apple_cc//:toolchain
231231
common:macos_arm64 --cpu=darwin_arm64
232232
common:macos_arm64 --macos_minimum_os=11.0
233233
common:macos_arm64 --config=clang_local
234-
common:macos_arm64 --platforms=@build_bazel_apple_support//configs/platforms:darwin_arm64
234+
common:macos_arm64 --platforms=@build_bazel_apple_support//platforms:darwin_arm64
235235

236236
# iOS configs for each architecture and the fat binary builds.
237237
common:ios --apple_platform_type=ios
@@ -244,16 +244,16 @@ common:ios_armv7 --cpu=ios_armv7
244244
common:ios_armv7 --platforms=@org_tensorflow//tensorflow/tools/toolchains/ios:ios_armv7
245245
common:ios_arm64 --config=ios
246246
common:ios_arm64 --cpu=ios_arm64
247-
common:ios_arm64 --platforms=@build_bazel_apple_support//configs/platforms:ios_arm64
247+
common:ios_arm64 --platforms=@build_bazel_apple_support//platforms:ios_arm64
248248
common:ios_arm64e --config=ios
249249
common:ios_arm64e --cpu=ios_arm64e
250-
common:ios_arm64e --platforms=@build_bazel_apple_support//configs/platforms:ios_arm64e
250+
common:ios_arm64e --platforms=@build_bazel_apple_support//platforms:ios_arm64e
251251
common:ios_sim_arm64 --config=ios
252252
common:ios_sim_arm64 --cpu=ios_sim_arm64
253-
common:ios_sim_arm64 --platforms=@build_bazel_apple_support//configs/platforms:ios_sim_arm64
253+
common:ios_sim_arm64 --platforms=@build_bazel_apple_support//platforms:ios_sim_arm64
254254
common:ios_x86_64 --config=ios
255255
common:ios_x86_64 --cpu=ios_x86_64
256-
common:ios_x86_64 --platforms=@build_bazel_apple_support//configs/platforms:ios_x86_64
256+
common:ios_x86_64 --platforms=@build_bazel_apple_support//platforms:ios_x86_64
257257
common:ios_fat --config=ios
258258
common:ios_fat --ios_multi_cpus=armv7,arm64,i386,x86_64
259259

@@ -282,19 +282,20 @@ common:mkl_threadpool -c opt
282282
# Config setting to build oneDNN with Compute Library for the Arm Architecture (ACL).
283283
# with Eigen threadpool support
284284
common:mkl_aarch64_threadpool --define=build_with_mkl_aarch64=true
285+
common:mkl_aarch64_threadpool --@compute_library//:openmp=false
285286
common:mkl_aarch64_threadpool -c opt
286287

287288
# This is an alias for the mkl_aarch64_threadpool build.
288289
common:mkl_aarch64 --config=mkl_aarch64_threadpool
289290

290-
# Default CUDA, CUDNN and NVSHMEM versions.
291+
# Default CUDA, CUDNN, NCCL and NVSHMEM versions.
291292
common:cuda_version --repo_env=HERMETIC_CUDA_VERSION="12.5.1"
292293
common:cuda_version --repo_env=HERMETIC_CUDNN_VERSION="9.3.0"
293294
common:cuda_version --repo_env=HERMETIC_NVSHMEM_VERSION="3.2.5"
295+
common:cuda_version --repo_env=HERMETIC_NCCL_VERSION="2.27.7"
294296

295297
# CUDA: This config refers to building CUDA op kernels with nvcc.
296298
common:cuda --repo_env TF_NEED_CUDA=1
297-
common:cuda --crosstool_top=@local_config_cuda//crosstool:toolchain
298299
common:cuda --@local_config_cuda//:enable_cuda
299300
common:cuda --config=cuda_version
300301
# This flag is needed to include CUDA libraries.
@@ -329,8 +330,6 @@ common:cuda_clang --linkopt="-lm"
329330
# Set up compilation CUDA version and paths and use the CUDA Clang toolchain.
330331
common:cuda_clang_official --config=cuda_clang
331332
common:cuda_clang_official --config=cuda_version
332-
common:cuda_clang_official --action_env=CLANG_CUDA_COMPILER_PATH="/usr/lib/llvm-18/bin/clang"
333-
common:cuda_clang_official --crosstool_top="@local_config_cuda//crosstool:toolchain"
334333

335334
# Build with nvcc for CUDA and clang for host
336335
common:cuda_nvcc --config=cuda
@@ -653,12 +652,6 @@ common:rbe_linux_cpu --python_path="/usr/bin/python3"
653652
# These you may need to change for your own GCP project.
654653
common:rbe_linux_cpu --remote_instance_name=projects/tensorflow-testing/instances/default_instance
655654

656-
# Download CUDA/CUDNN redistributions to preserve the repositories cache between
657-
# CPU and GPU builds.
658-
# TODO(ybaturina): Uncomment when RBE is ready to support this.
659-
common:rbe_linux_cpu --repo_env USE_CUDA_REDISTRIBUTIONS=1
660-
common:rbe_linux_cpu --config=cuda_version
661-
662655
# Deprecated RBE config with non-hermetic toolchains.
663656
common:rbe_linux_cpu_clang_local --config=rbe_linux_cpu
664657
common:rbe_linux_cpu_clang_local --config=clang_local
@@ -785,14 +778,18 @@ common:release_gpu_linux_clang_local --config=release_cpu_linux_clang_local
785778

786779
common:release_arm64_linux --config=release_linux_base
787780
common:release_arm64_linux --config=linux_arm64
788-
common:release_arm64_linux --config=clang_local
789-
common:release_arm64_linux --repo_env=CC="/usr/lib/llvm-18/bin/clang"
790-
common:release_arm64_linux --repo_env=BAZEL_COMPILER="/usr/lib/llvm-18/bin/clang"
791-
common:release_arm64_linux --crosstool_top="@ml2014_clang_aarch64_config_aarch64//crosstool:toolchain"
792781
common:release_arm64_linux --config=mkl_aarch64_threadpool
793782
common:release_arm64_linux --copt=-flax-vector-conversions
794783
test:release_arm64_linux --flaky_test_attempts=3
795784

785+
# Deprecated release CPU config with non-hermetic toolchains.
786+
common:release_arm64_linux_clang_local --config=release_arm64_linux
787+
common:release_arm64_linux_clang_local --config=clang_local
788+
common:release_arm64_linux_clang_local --repo_env=CC="/usr/lib/llvm-18/bin/clang"
789+
common:release_arm64_linux_clang_local --repo_env=BAZEL_COMPILER="/usr/lib/llvm-18/bin/clang"
790+
common:release_arm64_linux_clang_local --crosstool_top="@ml2014_clang_aarch64_config_aarch64//crosstool:toolchain"
791+
test:release_arm64_linux_clang_local --flaky_test_attempts=3
792+
796793
common:release_cpu_macos --config=avx_linux
797794

798795
# Base build configs for macOS

.github/workflows/arm-cd.yml

Lines changed: 2 additions & 2 deletions
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
55+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
60+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
6161
- name: Build and test pip wheel
6262
shell: bash
6363
run: |

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

Lines changed: 2 additions & 2 deletions
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
53+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
5454
with:
5555
ref: 'nightly'
5656
- name: Checkout repository
5757
if: ${{ github.event_name == 'push' }}
58-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
58+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
5959
- name: Build binary and run C++ tests
6060
shell: bash
6161
run: |

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

Lines changed: 2 additions & 2 deletions
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
54+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
5555
with:
5656
ref: 'nightly'
5757
- name: Checkout repository
5858
if: ${{ github.event_name == 'push' }}
59-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
59+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.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

Lines changed: 1 addition & 1 deletion
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
50+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
5151
- name: Build binary and run python tests
5252
shell: bash
5353
run: |

.github/workflows/cffconvert.yml

Lines changed: 1 addition & 1 deletion
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.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

Lines changed: 1 addition & 1 deletion
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
36+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3737
- name: Create a new Github Issue
3838
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
3939
with:

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

Lines changed: 1 addition & 1 deletion
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@v2.2.4"
31+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v2.3.0"
3232
with:
3333
scan-args: |-
3434
--lockfile=requirements.txt:./requirements_lock_3_9.txt

.github/workflows/pylint-presubmit.yml

Lines changed: 2 additions & 2 deletions
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3232
- name: Get file changes
3333
id: get_file_changes
3434
uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b # v1.2.4
@@ -38,7 +38,7 @@ jobs:
3838
run: |
3939
echo Changed files: ${{ steps.get_file_changes.outputs.files }}
4040
- name: Set up Python 3.9
41-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
41+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
4242
with:
4343
python-version: "3.9"
4444
- name: Install Python dependencies

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

Lines changed: 2 additions & 2 deletions
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
48+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.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@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
61+
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
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>

0 commit comments

Comments
 (0)