Skip to content

[Transform] Construct on GPU, cache on CPU #352

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 31 commits into from
Jul 7, 2025

Conversation

kylesayrs
Copy link
Contributor

@kylesayrs kylesayrs commented Jun 11, 2025

Purpose

  • Enable construction of large Hadamard matrices, whose large sizes require construction on the execution device (GPU)

Prerequisites

Changes

  • Extend ParameterizedDefaultDict to pass keyword arguments to factory function
  • Modify hadamard factories to construct hadamards on the execution device (GPU), but cache them on the offload device (CPU)
  • Add frozendict dependency for safer defaulting

Testing

  • Transform correctness and memory management tests pass

@kylesayrs kylesayrs changed the base branch from main to kylesayrs/extend-hadamard June 11, 2025 21:57
Signed-off-by: Kyle Sayers <[email protected]>
…gin' into kylesayrs/transform_construct_cache_device
@kylesayrs kylesayrs marked this pull request as ready for review June 11, 2025 22:08
Copy link
Contributor

@brian-dellabetta brian-dellabetta left a comment

Choose a reason for hiding this comment

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

everything makes sense to me but the new method on ParametrizedDefaultDict, left a comment

Base automatically changed from kylesayrs/extend-hadamard to main June 13, 2025 16:44
@dsikka dsikka dismissed brian-dellabetta’s stale review June 13, 2025 16:44

The base branch was changed.

kylesayrs added 2 commits July 7, 2025 11:04
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
dsikka
dsikka previously approved these changes Jul 7, 2025
Signed-off-by: Kyle Sayers <[email protected]>
@kylesayrs kylesayrs dismissed stale reviews from dsikka and brian-dellabetta via 282ba31 July 7, 2025 16:36
@kylesayrs kylesayrs merged commit 6c63987 into main Jul 7, 2025
1 check passed
@kylesayrs kylesayrs deleted the kylesayrs/transform_construct_cache_device branch July 7, 2025 16:48
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.

3 participants