Skip to content

implement bufferization interfaces for lattigo#2976

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

implement bufferization interfaces for lattigo#2976
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_918605118

Conversation

@copybara-service
Copy link
Copy Markdown
Contributor

implement bufferization interfaces for lattigo

This implements just enough bufferization to make MNIST work in a reasonable
time frame. Handling the remaining ops will come in a followup PR.

Before this change, MNIST with looped kernels would take 7 minutes per
inference. Now it takes 3 minutes per inference. Fixing AllocToInPlace (#2975) will resolve the remaining latency issues

@AlexanderViand
Copy link
Copy Markdown
Collaborator

@j2kun I'd love a brief walkthrough of this during the meeting tomorrow!

Comment thread lib/Dialect/Lattigo/IR/LattigoCKKSOps.td Outdated
@copybara-service copybara-service Bot force-pushed the test_918605118 branch 4 times, most recently from f7078aa to c8f6057 Compare May 20, 2026 23:19
This implements just enough bufferization to make MNIST work in a reasonable
time frame. Handling the remaining ops will come in a followup PR.

Before this change, MNIST with looped kernels would take 7 minutes per
inference. Now it takes 3 minutes per inference. Fixing AllocToInPlace (#2975) will resolve the remaining latency issues

PiperOrigin-RevId: 918605118
@j2kun
Copy link
Copy Markdown
Collaborator

j2kun commented May 20, 2026

@AlexanderViand if you feel like reviewing this one it is ready. I don't think there's anything groundbreaking going on, but the change from dot_product_8f to use linalg.dot is because the HECO passes are not strictly compatible with the current layout system (in particular, for dot_product they use a target slot of 7, when the layout assigned by the default layout pipeline treats the output as being in slot 0). I think we plan to deprecate those passes anyway, so that is not a major issue.

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.

2 participants