Skip to content

[XLA] Support call filter predicates in HloModuleSplitGroup and add LinkComputationInto. - #5669

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1005352161
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1005352161

Conversation

@copybara-service

Copy link
Copy Markdown

[XLA] Support call filter predicates in HloModuleSplitGroup and add LinkComputationInto.

  • Add an optional HloPredicate should_split_call parameter to GroupComputationsForSplitting, CreateHloModuleSplit, and CreateHloModuleSplitGroup so callers can split only on matching kCall boundaries (such as inlineable="xla_late") while cloning internal helper subcomputations into each split that uses them.
  • Preserve input_output_alias_config, buffer_donor_config, and metadata on the root split module in CreateHloModuleSplit.
  • Add LinkComputationInto in hlo_module_linking.{h,cc} to link split submodules directly back into an existing HloModule while preserving entry_computation_layout, input_output_alias_config, buffer_donor_config, and metadata, and delegate LinkComputation to it.
  • Add unit test SplitWithCallPredicateAndLinkComputationInto in hlo_module_splitting_test.cc.

…inkComputationInto.

* Add an optional `HloPredicate should_split_call` parameter to `GroupComputationsForSplitting`, `CreateHloModuleSplit`, and `CreateHloModuleSplitGroup` so callers can split only on matching `kCall` boundaries (such as `inlineable="xla_late"`) while cloning internal helper subcomputations into each split that uses them.
* Preserve `input_output_alias_config`, `buffer_donor_config`, and `metadata` on the root split module in `CreateHloModuleSplit`.
* Add `LinkComputationInto` in `hlo_module_linking.{h,cc}` to link split submodules directly back into an existing `HloModule` while preserving `entry_computation_layout`, `input_output_alias_config`, `buffer_donor_config`, and `metadata`, and delegate `LinkComputation` to it.
* Add unit test `SplitWithCallPredicateAndLinkComputationInto` in `hlo_module_splitting_test.cc`.

PiperOrigin-RevId: 1005352161

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant