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

Add Support for cast instruction in hip wmma intrinsic compiler #317

Merged
merged 12 commits into from
Nov 29, 2024

Conversation

syl20bnr
Copy link
Member

No description provided.

@syl20bnr syl20bnr force-pushed the fix/hip_wmma_intrinsic_cast_instruction branch from fd9cb95 to 46daf54 Compare November 28, 2024 02:15
@syl20bnr syl20bnr marked this pull request as draft November 28, 2024 04:19
@syl20bnr
Copy link
Member Author

Converting to draft, I want to fix other things that are not quite right in the intrinsic compiler.

Comment on lines 54 to 61
FragmentIdent::A | FragmentIdent::B => write!(f, "half16"),
FragmentIdent::Accumulator => write!(f, "float8"),
FragmentIdent::Accumulator => match fragment.elem {
Copy link
Member

Choose a reason for hiding this comment

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

Can we use bfloat16 in the instruction?

@@ -139,13 +169,15 @@ for (uint i = 0; i < uint(8); ++i) {{
} else {
panic!("{frag_a} is not a WMMA fragment!")
};
let cd_format = if let Variable::WmmaFragment { frag: inner_c, .. } = frag_c {
if let Variable::WmmaFragment { frag: inner_d, .. } = frag_d {
let (cd_format, opsel) = if let Variable::WmmaFragment { frag: mut inner_c, .. } = frag_c {
Copy link
Member

Choose a reason for hiding this comment

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

What is opsel ?

@@ -38,6 +38,7 @@ where

if A::check_availability::<R>(&client).is_err() {
// Can't execute the test.
println!("Skipped - not supported!");
Copy link
Member

Choose a reason for hiding this comment

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

For tests?

@syl20bnr syl20bnr force-pushed the fix/hip_wmma_intrinsic_cast_instruction branch from 6a857d4 to d3862f9 Compare November 28, 2024 17:13
@syl20bnr syl20bnr marked this pull request as ready for review November 28, 2024 23:17
Copy link
Member

@nathanielsimard nathanielsimard left a comment

Choose a reason for hiding this comment

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

Nice docs

@nathanielsimard nathanielsimard merged commit a4e2b77 into main Nov 29, 2024
5 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