23 Commits
Author SHA1 Message Date
Adrian Kuegel 0e25aa0a6a Use rocm_library in tf_gpu_kernel_library and tf_custom_op_library
Update tf_gpu_kernel_library and tf_custom_op_library in tensorflow.bzl to
dispatch to rocm_library from @config_rocm_hipcc//rocm:build_defs.bzl when ROCm
is configured instead of using cuda_library with rocm_copts. Bump
rules_ml_toolchain in TensorFlow's workspace3.bzl and MODULE.bazel so
rocm_library is available in @config_rocm_hipcc.

PiperOrigin-RevId: 1003047308
2026-10-20 12:28:24 -07:00
A. Unique TensorFlower b5d3f04312 Add Python 3.14 PyPI classifier, Bzlmod toolchain, and 2.22.0 release notes.
Adds `'Programming Language :: Python :: 3.14'` to `CLASSIFIERS` in `setup.oss.py.tpl`, registers the Python 3.14 toolchain and `requirements_lock_3_14.txt` in `MODULE.bazel`, documents Python 3.14 support under Release 2.22.0 in `RELEASE.md`, and removes a stale comment in `ml_build/Dockerfile`.

Fixes #102890

PiperOrigin-RevId: 999653577
2026-10-14 15:26:18 -07:00
TensorFlower Gardener bf313a7a25 Merge pull request #127109 from cfRod:onednn-aarch64-async-propagation
PiperOrigin-RevId: 989509701
2026-09-28 09:56:58 -07:00
TensorFlower Gardener 56f17c54f8 Merge pull request #126867 from GodlyDonuts:codex/validate-fused-pad-conv-rank
PiperOrigin-RevId: 988536632
2026-09-28 01:16:11 -07:00
Adrian Kuegel ce721307cd Upgrade rules_cc to 0.2.25 and bazel_features to 1.50.0 in XLA and TensorFlow
- Bump rules_cc from 0.2.20 to 0.2.25 in MODULE.bazel and workspace3.bzl for
  both XLA and TensorFlow.
- Bump bazel_features from 1.25.0 to 1.50.0 in workspace3.bzl for both XLA and
  TensorFlow to provide bazel_features.cc.cc_common_is_in_rules_cc used by
  rules_cc 0.2.25 in WORKSPACE mode.

PiperOrigin-RevId: 983818634
2026-09-18 07:52:51 -07:00
Crefeda Rodrigues 87372d77db Add AArch64 oneDNN async module repo 2026-09-07 13:16:43 +00:00
Adrian Kuegel fccb487ea3 Upgrade rules_cc to 0.2.20 and bazel_skylib to 1.9.0 in TensorFlow
- Explicitly define rules_cc 0.2.20 in workspace3.bzl.
- Call compatibility_proxy_repo() in WORKSPACE and workspace1.bzl to define
  @cc_compatibility_proxy in WORKSPACE mode.
- Bump rules_cc to 0.2.20 in MODULE.bazel.
- Bump bazel_skylib to 1.9.0 in workspace3.bzl and MODULE.bazel to support
  the 'scope' attribute on bool_flag used by rules_cc 0.2.20.
- In third_party/googleapis/build_rules.bzl.oss, load cc_proto_library from
  protobuf instead of rules_cc defs.bzl, avoiding errors from the removal
  of cc_proto_library in rules_cc >= 0.2.18.

PiperOrigin-RevId: 975045752
2026-09-02 04:22:46 -07:00
A. Unique TensorFlower a33c850682 [NCCL] Upgrade XLA NCCL version to 2.30.7
PiperOrigin-RevId: 972462168
2026-08-28 04:05:14 -07:00
David Dunleavy 799c993e33 Use canonical repo names for @grpc and @highway in XLA and TensorFlow
PiperOrigin-RevId: 962483618
2026-08-10 18:32:45 -07:00
Yurii Topin 1f70e28ee0 Bump rules_ml_toolchain version. Update ROCm repositories initialization
PiperOrigin-RevId: 956204638
2026-07-29 18:51:31 -07:00
Andrei Ivanov 35fd3492a4 Squashing commits after sync tool breakage
Reverts 1b96579482

PiperOrigin-RevId: 951414818
2026-07-21 05:23:58 -07:00
Sparsh :) bf8a2b338e Fix LLVM repository Bzlmod resolution issue 2026-07-13 12:12:40 +05:30
Allan Renucci ef0b0b5956 Upgrade Abseil to LTS 20260526.0
PiperOrigin-RevId: 938553451
2026-06-26 06:37:38 -07:00
Penporn Koanantakool 0126fb8c81 Reverts e53e1dbaa3
PiperOrigin-RevId: 922664584
2026-05-28 03:36:00 -07:00
Yurii Topin e53e1dbaa3 Use rules_ml_toolchain for Linux x86_64 -> Linux aarch64 cross compilation
PiperOrigin-RevId: 919850851
2026-05-22 14:17:31 -07:00
Levon Ter-Grigoryan 48fe0368ff [NCCL] Upgrade XLA NCCL version to 2.29.7
PiperOrigin-RevId: 908006723
2026-04-30 00:55:11 -07:00
Yurii Topin 43dd9c527d Move rules_ml_toolchain loading from WORKSPACE and workspace0.bzl to workspace3.bzl
Loading rules_ml_toolchain directly in the WORKSPACE file creates a maintenance headache by requiring manual updates for each Tensorflow dependent project. To streamline this, we’ve moved the repository load into xla_workspace3.bzl. This ensures the hermetic Python toolchains are available early enough in the initialization sequence.

PiperOrigin-RevId: 905126658
2026-04-24 11:14:10 -07:00
Yurii Topin 818116a4ad Update rules_ml_toolchain to the version with latest Hermetic Python before proceeding with the next update steps
PiperOrigin-RevId: 900403408
2026-04-15 16:42:45 -07:00
Yurii Topin 8eddcee72d Update rules_ml_toolchain to the version with Hermetic Python before proceeding with the next update steps
PiperOrigin-RevId: 893210783
2026-04-01 18:32:13 -07:00
TensorFlower Gardener 694fbd589c Merge pull request #112668 from meteorcloudy:bzlmod-pip
PiperOrigin-RevId: 885692471
2026-03-18 11:18:49 -07:00
Yun Peng 6c3370316f collect numpy headers 2026-03-18 11:17:14 +00:00
Yicheng Luo 52a007a230 Fix Bzlmod compatibility for PIP package build
- Refactor tf_wheel rule to resolve canonical repository names and pass them as environment variables.
- Update wheel target in BUILD to use external_repos list for cleaner maintenance.
- Simplify get_repo_path in build_pip_package.py to leverage these environment variables.
- Add missing pybind11_abseil dependency to import_api_packages_test_cpu.
- Ensure tests pass in both Bzlmod and non-Bzlmod environments.
2026-03-18 09:56:45 +00:00
Yicheng Luo 1fb07d11a9 PR #102891: Add basic Bzlmod support
Imported from GitHub PR https://github.com/tensorflow/tensorflow/pull/102891

See #62598.

Add basic bzlmod support on Linux x86 CPU. Most of the incompatibilities have been resolved.

Running tests with:
```
env TFCI=py311,linux_x86,rbe,bzlmod,no_docker ci/official/pycpp.sh
```
should pass except for those in tensorflow/tools/pip_package

A known issue is with building the wheels. The issues are two fold:
1. In particular, in WORKSPACE setup an old version of pybind11_abseil is used. I can't find a version of pybind11_abseil with bzlmod support that works.
The reason is that TensorFlow implicitly requires the `ImportStatusModule(bypass_regular_import = true)` which is not supported in latest version of pybind11_abseil.
2. The wheel building script packages some headers and python modules from external repos (XLA, TSL, local_config_cuda). Under bzlmod they will be in a different path.
pcloudy@ suggested some tricks to handle this for a single directory by passing the path as environment variable, but considering many are used for building wheels, we should find a better way.

Reasons for duplicating the patches on absl/grpc: bzlmod does not support applying patches across module boundary.

Copybara import of the project:

--
99f6ec365e83b2a188399e050ac67865888e91c2 by Yicheng Luo <ethanluoyc@gmail.com>:

Support bzlmod

Merging this change closes #102891

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/tensorflow/pull/102891 from ethanluoyc:bzlmod aa56a78ea1adce56262937ee79bcf61db530ba05
PiperOrigin-RevId: 885201845
2026-03-17 14:30:22 -07:00