Skip to content

Conversation

@snonk
Copy link
Collaborator

@snonk snonk commented Nov 26, 2025

No description provided.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

EnzymeJAX Benchmarks

Details
Benchmark suite Current: 90f15e0 Previous: f603104 Ratio
scatter_sum / JaX / cpu / Primal 0.000004296115000033751 s 0.000004260189699562034 s 1.01
scatter_sum / JaXPipe / cpu / Primal 0.000004192633999628015 s 0.000004406429699884029 s 0.95
scatter_sum / JaX / tpu / Primal 0.0001415956161996 s 0.0001248841227003 s 1.13
scatter_sum / JaXPipe / tpu / Primal 0.0001420597381998 s 0.0001351668211995 s 1.05

This comment was automatically generated by workflow using github-action-benchmark.

Comment on lines +26047 to +26050
struct FuseMulIntoSymm
: public CheckedOpRewritePattern<stablehlo::MulOp, FuseMulIntoSymm> {
using CheckedOpRewritePattern<stablehlo::MulOp,
FuseMulIntoSymm>::CheckedOpRewritePattern;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make the original fusemul into a templated struct and specialize those

Comment on lines +26087 to +26091
struct FuseAddIntoSymm
: public CheckedOpRewritePattern<stablehlo::AddOp,
FuseAddIntoSymm>::CheckedOpRewritePattern {
using CheckedOpRewritePattern<stablehlo::AddOp,
FuseAddIntoSymm>::CheckedOpRewritePattern;
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

Comment on lines +55 to +56
return rewriter.notifyMatchFailure(op, "Unknown backend: \"" + backend +
"\"");
Copy link
Collaborator

Choose a reason for hiding this comment

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

write a fallback implementation

auto result = callOp.getResult(0);

rewriter.replaceAllUsesWith(op.getResult(), result);
// rewriter.eraseOp(op); // remove?
Copy link
Collaborator

Choose a reason for hiding this comment

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

replaceAllUsesWith should remove the op automatically

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