Skip to content

[Pallas TPU] Support memory space constraints on pallas_call inputs. #29391

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jun 11, 2025

[Pallas TPU] Support memory space constraints on pallas_call inputs.

This CL adds:

  • a new function with_memory_space_constraint that allow to add
    a memory space constraint on a Pallas call input.
  • HBM enum value for Pallas TPU memory spaces

This CL only supports HBM and VMEM at the moment. In general these annotations only work on TPU because the mechanism that enforces them is only present in XLA TPU.

@copybara-service copybara-service bot force-pushed the test_769882785 branch 5 times, most recently from ef82624 to e71c9e7 Compare June 12, 2025 00:25
@copybara-service copybara-service bot changed the title [Pallas] Support memory space constraints on pallas_call inputs. [Pallas TPU] Support memory space constraints on pallas_call inputs. Jun 12, 2025
@copybara-service copybara-service bot force-pushed the test_769882785 branch 2 times, most recently from 25692d1 to ea6a4cb Compare June 12, 2025 16:31
This CL adds:
  - a new function `with_memory_space_constraint` that allow to add
    a memory space constraint on a Pallas call input.
  - `HBM` enum value for Pallas TPU memory spaces

This CL only supports HBM and VMEM at the moment. In general these annotations only work on TPU because the mechanism that enforces them is only present in XLA TPU.

PiperOrigin-RevId: 770694413
@copybara-service copybara-service bot merged commit f81f258 into main Jun 12, 2025
@copybara-service copybara-service bot deleted the test_769882785 branch June 12, 2025 16:47
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