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

[TKW] Scalarized local reduction for faster Max #335

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

raikonenfnu
Copy link
Contributor

Max reduction can make use of v_max3_f32 which is much faster than regular v_max_f32. However to enable this we'd need to scalarize the local reduction more S.T LLVM compiler can do this optimization better. (drop latency from
4.5 ms to ~4.3 ms on dispatch146(B0: 2, B1: 20, (M, K2): 1024: K1: 64)

Max reduction can make use of v_max3_f32 which is much faster than
regular v_max_f32. However to enable this we'd need to scalarize the
local reduction more S.T LLVM compiler can do this optimization better.

Signed-off-by: Stanley Winata <stanley.winata@amd.com>
Copy link
Contributor

@harsh-nod harsh-nod left a comment

Choose a reason for hiding this comment

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

lgtm! thanks!

@raikonenfnu raikonenfnu merged commit 142c8a5 into iree-org:main Dec 16, 2024
10 checks passed
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