Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk #20794

Closed
wants to merge 5 commits into from

Conversation

shraiysh
Copy link
Contributor

This patch adds support for offset modules in ds fusion thunk. It also moves the ResourceRequests structure from gpu_executable.cc to gpu_executable.h because a valid implementation of the abstract class Thunk::ResourceRequests is required for calling Thunk::Prepare().

This is split from #20332 as per request.

@shraiysh shraiysh requested a review from bchetioui December 20, 2024 22:03
@shraiysh shraiysh self-assigned this Dec 20, 2024
@shraiysh shraiysh force-pushed the ds_fusion_thunk_changes branch 2 times, most recently from 5eb52f6 to c00a3cb Compare December 20, 2024 22:04
@shraiysh shraiysh added the kokoro:force-run Forces CI to rerun label Dec 23, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Forces CI to rerun label Dec 23, 2024
@bchetioui bchetioui requested a review from ezhulenev December 23, 2024 08:34
@shraiysh shraiysh force-pushed the ds_fusion_thunk_changes branch from c00a3cb to 3edf4ab Compare December 23, 2024 22:42
@shraiysh shraiysh added the kokoro:force-run Forces CI to rerun label Dec 23, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Forces CI to rerun label Dec 23, 2024
@shraiysh shraiysh force-pushed the ds_fusion_thunk_changes branch from 3edf4ab to ddc2d4f Compare December 23, 2024 23:08
@shraiysh shraiysh added the kokoro:force-run Forces CI to rerun label Dec 23, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Forces CI to rerun label Dec 23, 2024
@shraiysh
Copy link
Contributor Author

The error in the CI job is unrelated. This PR is open for review.

@shraiysh
Copy link
Contributor Author

shraiysh commented Jan 2, 2025

@ezhulenev @bchetioui ping for review. Thanks.

Copy link
Member

@bchetioui bchetioui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @shraiysh! @beckerhe suggested moving ResourceRequests to its own header and source files.

At its core, it seems like this PR does two things:

  1. Reformulate the definitions of ResourceRequests such that they are accessible through the header file;
  2. Add some functionality.

To be honest, from the current diff, it's not super straightforward to figure out what is what. Would you mind splitting the pure code move (that'll be a trivial review for us), and the added functionality?

@@ -53,6 +53,42 @@ limitations under the License.
namespace xla {
namespace gpu {

// Shared resources required for thunk initialization and execution.
class ResourceRequests : public Thunk::ResourceRequests {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's maybe create dedicated source and header files for this class.

@shraiysh shraiysh force-pushed the ds_fusion_thunk_changes branch from ddc2d4f to d0e2c73 Compare January 13, 2025 17:57
@shraiysh shraiysh added the kokoro:force-run Forces CI to rerun label Jan 13, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Forces CI to rerun label Jan 13, 2025
@shraiysh shraiysh requested a review from bchetioui January 13, 2025 18:00
@shraiysh shraiysh force-pushed the ds_fusion_thunk_changes branch 2 times, most recently from 99e367f to 32c2cc1 Compare January 13, 2025 18:45
@shraiysh shraiysh added the kokoro:force-run Forces CI to rerun label Jan 13, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Forces CI to rerun label Jan 13, 2025
@shraiysh shraiysh force-pushed the ds_fusion_thunk_changes branch from 32c2cc1 to 0995afc Compare January 13, 2025 22:38
@shraiysh shraiysh added the kokoro:force-run Forces CI to rerun label Jan 13, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Forces CI to rerun label Jan 13, 2025
using Offset = std::variant<int64_t, BufferAllocation::Slice>;
// transferred to host or (3) a temporary HloModule that computes the offset
// with induction variable as the input.
using Offset = std::variant<int64_t, BufferAllocation::Slice, HloModule*>;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the docstring to account for this new variant constructor.

@bchetioui Added.

// `indvar_update_` is a module of the prototype `(integer[]) -> integer[]`.
// It takes the current value of the induction variable, and returns the next
// value of the induction variable.
std::unique_ptr<HloModule> indvar_init_, indvar_update_;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please clearly document all the new fields.

Done. Thanks for mentioning this.

copybara-service bot pushed a commit that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 27, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR #20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9 by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bf by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20794 from shraiysh:ds_fusion_thunk_changes efbe6bf
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20794 from shraiysh:ds_fusion_thunk_changes efbe6bfa6f10f1ee998683161e398ae3adc0f183
PiperOrigin-RevId: 718748248
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 28, 2025
…on thunk

Imported from GitHub PR openxla/xla#20794

This patch adds support for offset modules in ds fusion thunk. It also moves the `ResourceRequests` structure from `gpu_executable.cc` to `gpu_executable.h` because a valid implementation of the abstract class `Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

This is split from #20332 as per request.
Copybara import of the project:

--
53226e9428dff816819c192735b9569ef3d309ea by Shraiysh Vaishay <[email protected]>:

[gpu][ds-fusion] Add handling for offset module in ds-fusion thunk

This patch adds support for offset modules in ds fusion thunk. It also
moves the `ResourceRequests` structure from `gpu_executable.cc` to
`gpu_executable.h` because a valid implementation of the abstract class
`Thunk::ResourceRequests` is required for calling `Thunk::Prepare()`.

--
e554ac6b09b5023082210c5100a1f1a86c1c6605 by Shraiysh Vaishay <[email protected]>:

Address comments and rebase

--
4ac8efa0c9885b0f21f526072f821ace40be4043 by Shraiysh Vaishay <[email protected]>:

Address comments

--
8c23e2a4e2ff66fb7361c48c9d988ebb2261bc41 by Shraiysh Vaishay <[email protected]>:

Addressed comments.

--
efbe6bfa6f10f1ee998683161e398ae3adc0f183 by Shraiysh Vaishay <[email protected]>:

Addressed comments

Merging this change closes #20794

PiperOrigin-RevId: 720558939
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.

4 participants