Skip to content

Commit a8fe5b4

Browse files
authored
Merge pull request #2953 from ROCm/develop-upstream-sync-250514
Develop upstream sync 250514
2 parents 936d47b + b96918a commit a8fe5b4

File tree

5,103 files changed

+212950
-209885
lines changed

Some content is hidden

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

5,103 files changed

+212950
-209885
lines changed

.bazelrc

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ build --config=v2
129129
# Disable AWS/HDFS support by default
130130
build --define=no_aws_support=true
131131
build --define=no_hdfs_support=true
132+
# Precompiling results in some action conflicts. Disable it for now until
133+
# the problematic targets are fixed.
134+
build --@rules_python//python/config_settings:precompile=force_disabled
132135

133136
# TF now has `cc_shared_library` targets, so it needs the experimental flag
134137
# TODO(rostam): Remove when `cc_shared_library` is enabled by default
@@ -164,15 +167,19 @@ build:android --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
164167
build:android_arm --config=android
165168
build:android_arm --cpu=armeabi-v7a
166169
build:android_arm --fat_apk_cpu=armeabi-v7a
170+
build:android_arm --platforms=@org_tensorflow//tensorflow/tools/toolchains/android:armeabi-v7a
167171
build:android_arm64 --config=android
168172
build:android_arm64 --cpu=arm64-v8a
169173
build:android_arm64 --fat_apk_cpu=arm64-v8a
174+
build:android_arm64 --platforms=@org_tensorflow//tensorflow/tools/toolchains/android:arm64-v8a
170175
build:android_x86 --config=android
171176
build:android_x86 --cpu=x86
172177
build:android_x86 --fat_apk_cpu=x86
178+
build:android_x86 --platforms=@org_tensorflow//tensorflow/tools/toolchains/android:x86
173179
build:android_x86_64 --config=android
174180
build:android_x86_64 --cpu=x86_64
175181
build:android_x86_64 --fat_apk_cpu=x86_64
182+
build:android_x86_64 --platforms=@org_tensorflow//tensorflow/tools/toolchains/android:x86_64
176183

177184
# Build everything statically for Android since all static libs are later
178185
# bundled together into a single .so for deployment.
@@ -205,6 +212,7 @@ build:apple-toolchain --host_crosstool_top=@local_config_apple_cc//:toolchain
205212
# Settings for MacOS on ARM CPUs.
206213
build:macos_arm64 --cpu=darwin_arm64
207214
build:macos_arm64 --macos_minimum_os=11.0
215+
build:macos_arm64 --platforms=@build_bazel_apple_support//configs/platforms:darwin_arm64
208216

209217
# iOS configs for each architecture and the fat binary builds.
210218
build:ios --apple_platform_type=ios
@@ -213,14 +221,19 @@ build:ios --copt=-Wno-c++11-narrowing
213221
build:ios --config=apple-toolchain
214222
build:ios_armv7 --config=ios
215223
build:ios_armv7 --cpu=ios_armv7
224+
build:ios_armv7 --platforms=@org_tensorflow//tensorflow/tools/toolchains/ios:ios_armv7
216225
build:ios_arm64 --config=ios
217226
build:ios_arm64 --cpu=ios_arm64
227+
build:ios_arm64 --platforms=@build_bazel_apple_support//configs/platforms:ios_arm64
218228
build:ios_arm64e --config=ios
219229
build:ios_arm64e --cpu=ios_arm64e
230+
build:ios_arm64e --platforms=@build_bazel_apple_support//configs/platforms:ios_arm64e
220231
build:ios_sim_arm64 --config=ios
221232
build:ios_sim_arm64 --cpu=ios_sim_arm64
233+
build:ios_sim_arm64 --platforms=@build_bazel_apple_support//configs/platforms:ios_sim_arm64
222234
build:ios_x86_64 --config=ios
223235
build:ios_x86_64 --cpu=ios_x86_64
236+
build:ios_x86_64 --platforms=@build_bazel_apple_support//configs/platforms:ios_x86_64
224237
build:ios_fat --config=ios
225238
build:ios_fat --ios_multi_cpus=armv7,arm64,i386,x86_64
226239

@@ -246,24 +259,24 @@ build:mkl_threadpool --define=tensorflow_mkldnn_contraction_kernel=0
246259
build:mkl_threadpool --define=build_with_mkl_opensource=true
247260
build:mkl_threadpool -c opt
248261

249-
# Config setting to build oneDNN with Compute Library for the Arm Architecture (ACL).
250-
build:mkl_aarch64 --define=build_with_mkl_aarch64=true
251-
build:mkl_aarch64 --define=build_with_openmp=true
252-
build:mkl_aarch64 --define=build_with_acl=true
253-
build:mkl_aarch64 -c opt
254-
255262
# Config setting to build oneDNN with Compute Library for the Arm Architecture (ACL).
256263
# with Eigen threadpool support
257264
build:mkl_aarch64_threadpool --define=build_with_mkl_aarch64=true
265+
build:mkl_aarch64_threadpool --define=build_with_acl=true
258266
build:mkl_aarch64_threadpool -c opt
259267

268+
# This is an alias for the mkl_aarch64_threadpool build.
269+
build:mkl_aarch64 --config=mkl_aarch64_threadpool
270+
271+
# Default CUDA and CUDNN versions.
272+
build:cuda_version --repo_env=HERMETIC_CUDA_VERSION="12.5.1"
273+
build:cuda_version --repo_env=HERMETIC_CUDNN_VERSION="9.3.0"
274+
260275
# CUDA: This config refers to building CUDA op kernels with nvcc.
261276
build:cuda --repo_env TF_NEED_CUDA=1
262277
build:cuda --crosstool_top=@local_config_cuda//crosstool:toolchain
263278
build:cuda --@local_config_cuda//:enable_cuda
264-
# Default CUDA and CUDNN versions.
265-
build:cuda --repo_env=HERMETIC_CUDA_VERSION="12.5.1"
266-
build:cuda --repo_env=HERMETIC_CUDNN_VERSION="9.3.0"
279+
build:cuda --config=cuda_version
267280
# This flag is needed to include CUDA libraries.
268281
build:cuda --@local_config_cuda//cuda:include_cuda_libs=true
269282

@@ -293,8 +306,7 @@ build:cuda_clang --linkopt="-lm"
293306

294307
# Set up compilation CUDA version and paths and use the CUDA Clang toolchain.
295308
build:cuda_clang_official --config=cuda_clang
296-
build:cuda_clang_official --repo_env=HERMETIC_CUDA_VERSION="12.5.1"
297-
build:cuda_clang_official --repo_env=HERMETIC_CUDNN_VERSION="9.3.0"
309+
build:cuda_clang_official --config=cuda_version
298310
build:cuda_clang_official --action_env=CLANG_CUDA_COMPILER_PATH="/usr/lib/llvm-18/bin/clang"
299311
build:cuda_clang_official --crosstool_top="@local_config_cuda//crosstool:toolchain"
300312

@@ -458,12 +470,8 @@ build:windows --dynamic_mode=off
458470

459471
# Default paths for TF_SYSTEM_LIBS
460472
build:linux --define=PREFIX=/usr
461-
build:linux --define=LIBDIR=$(PREFIX)/lib
462-
build:linux --define=INCLUDEDIR=$(PREFIX)/include
463473
build:linux --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include
464474
build:macos --define=PREFIX=/usr
465-
build:macos --define=LIBDIR=$(PREFIX)/lib
466-
build:macos --define=INCLUDEDIR=$(PREFIX)/include
467475
build:macos --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include
468476
# TF_SYSTEM_LIBS do not work on windows.
469477

@@ -624,6 +632,12 @@ build:rbe_linux_cpu --python_path="/usr/bin/python3"
624632
# These you may need to change for your own GCP project.
625633
common:rbe_linux_cpu --remote_instance_name=projects/tensorflow-testing/instances/default_instance
626634

635+
# Download CUDA/CUDNN redistributions to preserve the repositories cache between
636+
# CPU and GPU builds.
637+
# TODO(ybaturina): Uncomment when RBE is ready to support this.
638+
# build:rbe_linux_cpu --repo_env USE_CUDA_REDISTRIBUTIONS=1
639+
# build:rbe_linux_cpu --config=cuda_version
640+
627641
# TODO(kanglan): Remove it after toolchain update is complete.
628642
build:rbe_linux_cpu_old --config=rbe_linux
629643
build:rbe_linux_cpu_old --host_crosstool_top="@ubuntu20.04-gcc9_manylinux2014-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain"
@@ -637,6 +651,7 @@ common:rbe_linux_cpu_old --remote_instance_name=projects/tensorflow-testing/inst
637651

638652
build:rbe_linux_cuda --config=cuda_clang_official
639653
build:rbe_linux_cuda --config=rbe_linux_cpu
654+
build:rbe_linux_cuda --repo_env=USE_CUDA_TAR_ARCHIVE_FILES=1
640655
# For Remote build execution -- GPU configuration
641656
build:rbe_linux_cuda --repo_env=REMOTE_GPU_TESTING=1
642657

@@ -677,8 +692,10 @@ build:elinux --crosstool_top=@local_config_embedded_arm//:toolchain
677692
build:elinux --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
678693
build:elinux_aarch64 --config=elinux
679694
build:elinux_aarch64 --cpu=aarch64
695+
build:elinux_aarch64 --platforms=@org_tensorflow//tensorflow/tools/toolchains/linux:linux_aarch64
680696
build:elinux_armhf --config=elinux
681697
build:elinux_armhf --cpu=armhf
698+
build:elinux_armhf --platforms=@org_tensorflow//tensorflow/tools/toolchains/linux:linux_armhf
682699
build:elinux_armhf --copt -mfp16-format=ieee
683700

684701
# Config-specific options should come above this line.

.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@v1.9.2"
31+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v2.0.1"
3232
with:
3333
scan-args: |-
3434
--lockfile=requirements.txt:./requirements_lock_3_9.txt

.github/workflows/pylint-presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
41+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
4242
with:
4343
python-version: "3.9"
4444
- name: Install Python dependencies

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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@dd2324fc52d5d43c699a5636bcf19fceaa70c284 # v7.0.7
61+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
6262
with:
6363
title: '${{ github.event.inputs.release_branch }} cherry-pick: ${{ steps.cherrypick.outputs.SHORTSHA }} "${{ steps.cherrypick.outputs.TITLE }}"'
6464
committer: TensorFlow Release Automation <[email protected]>

.github/workflows/scorecards-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
5656
# format to the repository Actions tab.
5757
- name: "Upload artifact"
58-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
58+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5959
with:
6060
name: SARIF file
6161
path: results.sarif
@@ -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@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
67+
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
6868
with:
6969
sarif_file: results.sarif

.github/workflows/update-rbe.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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@dd2324fc52d5d43c699a5636bcf19fceaa70c284 # v7.0.7
133+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
134134
with:
135135
title: Update the RBE images to the latest container versions
136136
committer: TensorFlow Release Automation <[email protected]>

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/tensorflow-py.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:tensorflow-py)
1212
[![OSSRank](https://shields.io/endpoint?url=https://ossrank.com/shield/44)](https://ossrank.com/p/44)
1313
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)
14-
[![TF Official Continuous](https://tensorflow.github.io/build/TF%20Official%20Continuous.svg)](https://tensorflow.github.io/build#TF%20Official%20Continuous)
15-
[![TF Official Nightly](https://tensorflow.github.io/build/TF%20Official%20Nightly.svg)](https://tensorflow.github.io/build#TF%20Official%20Nightly)
1614

1715
**`Documentation`** |
1816
------------------- |

RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3234,7 +3234,7 @@ This release introduces several vulnerability fixes:
32343234

32353235
* Keras been split into a separate PIP package (`keras`), and its code has
32363236
been moved to the GitHub
3237-
repository[keras-team/keras](http://github.com/keras-team/keras). The
3237+
repository[keras-team/keras](https://github.com/keras-team/keras). The
32383238
API endpoints for `tf.keras` stay unchanged, but are now backed by the
32393239
`keras` PIP package. The existing code in tensorflow/python/keras is a
32403240
staled copy and will be removed in future release (2.7). Please remove
@@ -10309,7 +10309,7 @@ answered questions, and were part of inspiring discussions.
1030910309
## Major Features And Improvements
1031010310

1031110311
* `tf.keras` is now part of the core TensorFlow API.
10312-
* [`tf.data`](http://tensorflow.org/guide/data) is now part of the core
10312+
* [`tf.data`](https://tensorflow.org/guide/data) is now part of the core
1031310313
TensorFlow API.
1031410314
* The API is now subject to backwards compatibility guarantees.
1031510315
* For a guide to migrating from the `tf.contrib.data` API, see the

WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ python_init_repositories(
4343
"3.10": "//:requirements_lock_3_10.txt",
4444
"3.11": "//:requirements_lock_3_11.txt",
4545
"3.12": "//:requirements_lock_3_12.txt",
46+
"3.13": "//:requirements_lock_3_13.txt",
4647
},
4748
)
4849

ci/official/containers/linux_arm64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
################################################################################
2-
FROM ubuntu:20.04@sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b as builder
2+
FROM ubuntu:20.04@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428701f6682bd2fafe15388214 as builder
33
################################################################################
44

55
# Install devtoolset build dependencies

0 commit comments

Comments
 (0)