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

ukernels: sub-8-bit support, types s16 * u4 -> s32 and s16 * s16 -> s32 #15343

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

bjacob
Copy link
Contributor

@bjacob bjacob commented Oct 30, 2023

s16 * u4 -> s32 is the main goal in #15158, and s16 * s16 -> s32 is seen as a less-optimized but generically useful path to run generic "some non-8-bit quantized matmuls that we don't have super specialized code for" on.

@bjacob bjacob changed the title ukernel-sub8bit ukernels: sub-8-bit support, types s16 * u4 -> s32 and s16 * s16 -> s32 Oct 30, 2023
@bjacob bjacob marked this pull request as ready for review October 30, 2023 21:42
@bjacob bjacob requested a review from benvanik as a code owner October 30, 2023 21:42
@bjacob bjacob requested a review from Max191 October 31, 2023 17:24
Copy link
Contributor

@hanhanW hanhanW left a comment

Choose a reason for hiding this comment

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

I'm not familiar with the structure but the pieces look good to me.

Comment on lines +235 to +238
case iree_uk_mmt4d_type_s16s16s32:
return 0;
case iree_uk_mmt4d_type_s16u4s32:
return 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not familiar with these. It looks like it is returning a null function pointer. Should we add a TODO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes this is returning a null function pointer, which in this context means "We do not have an arm64-optimized code path for this", which the caller will use to fall back to generic code.

@bjacob bjacob merged commit 3d1d8c8 into iree-org:main Nov 1, 2023
ramiro050 pushed a commit to ramiro050/iree that referenced this pull request Dec 19, 2023
…> s32` (iree-org#15343)

`s16 * u4 -> s32` is the main goal in iree-org#15158, and `s16 * s16 -> s32` is
seen as a less-optimized but generically useful path to run generic
"some non-8-bit quantized matmuls that we don't have super specialized
code for" on.
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