Skip to content

[pull] master from tensorflow:master - #8788

Merged
pull[bot] merged 11 commits into
Cache-Cloud:masterfrom
tensorflow:master
Aug 28, 2026
Merged

[pull] master from tensorflow:master#8788
pull[bot] merged 11 commits into
Cache-Cloud:masterfrom
tensorflow:master

Conversation

@pull

@pull pull Bot commented Aug 28, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

sannidhyachauhan and others added 11 commits August 28, 2026 05:47
This pass removes unnecessary size-1 from the module. Degenerate dimensions are generally no-op, but it add unnecessary reshapes/bitcasts to the graph that can sometime prevent better fusion and tiling decision or cause problem with emitter pipelines, like Triton.

Reverts 327ef3d

PiperOrigin-RevId: 972515964
… kernel thunks.

Create a symmetric memory for scratch buffers and use it to get a peer address of memory chunk instead of running separate rendzevous.

PiperOrigin-RevId: 972518088
Imported from GitHub PR openxla/xla#47701

**NFC:** splitting functionality into separate library

Extract `collective_rendezvous` from `collective_ops_utils` as it's really a runtime support and node used for collective ops analysis/optimization.
Copybara import of the project:

--
6b91ae42a6453e1adcac7e7835a55179db1b9dd5 by Eugene Zhulenev <ezhulenev@openxla.org>:

[xla] Extract a separate collective_rendezvous library

Merging this change closes #47701

PiperOrigin-RevId: 972518994
… threshold is exceeded.

Iterate by reference in the earlier collectives loop so reassigning earlier_coll updates the vector entry instead of being a local no-op.

PiperOrigin-RevId: 972519816
Msan support is currently incomplete.  For example, we don't add
the appropriate msan pass to LLVM's pipeline; instead, we manually
call __msan_unpoison here and there. In AOT (tfcompile) the situation
is even worse, since we only add these annotations to some of the
emitted code.

This change adds complete support for msan (and msan-track-origins)
to XLA:CPU in both JIT and AOT modes. In particular:

- Adds a single boolean config flag to determine whether msan should
  be enabled in compiled code. This is then wired up through the
  compiler, removing several #ifdef MEMORY_SANITIZER (or equivalent)
  checks that we had scattered around the code base. (OK, this is
  two knobs because we also support track-origins.)
- Adds the msan pass to LLVM as documented in
    https://github.com/google/sanitizers/wiki/MemorySanitizerJIT
  This requires a small TLS emulation library, which (1) in JIT
  gives access to host symbols from JIT'ed code, and (2) in AOT
  (tfcompile) must be linked in the final binary so that the
  compiled code can reliably access msan symbols.

What's missing from this CL:
1. Removal of now obsolete annotations
2. Setting of the appropriate flags in tfcompile to enable the
  new path in AOT.

These two changes will land once users have had time to recompile
their compilers (in case they embed tfcompile into them), about
1-2 weeks.

Note: the msan support implemented in this CL supersedes cl/959445928, i.e.
openxla/xla@70f2607611. That means the
xla_backend_extra option added there for msan on AOT will be removed when
landing the two missing pieces from this CL.

Reverts ef7547c

PiperOrigin-RevId: 972614006
…s for which "keep_trivial_sync_annotation" returns true. Delete the redundant code block which only checks groups with a single op.

PiperOrigin-RevId: 972643528
…eduction sizes.

Using isolated log bounds (such as [-85, 85] for F32) led to downstream +inf
failures in reduction fusions and expressions like x * exp(x).

This change:
- Precomputes downstream addition-reduction element counts per kExp in reverse
  post-order.
- Scales kExp bounds using base thresholds per data type (e.g. 4.0 for F32, 2.5
  for BF16/F16), dynamically tightening when N > 1.
- Adds a small positive floor (0.1) to avoid negative intervals and preserve
  positive test coverage around zero.

PiperOrigin-RevId: 972671223
Keep both legacy and new autotune cache formats in tests.

PiperOrigin-RevId: 972671341
CommonPjRtClient using InferDispatchInfo.

PiperOrigin-RevId: 972683293
@pull pull Bot locked and limited conversation to collaborators Aug 28, 2026
@pull pull Bot added the ⤵️ pull label Aug 28, 2026
@pull
pull Bot merged commit ec78c9a into Cache-Cloud:master Aug 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.