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

One column Matrix Multiplication for Ryzen AI #859

Merged
merged 8 commits into from
Dec 20, 2023
Merged

One column Matrix Multiplication for Ryzen AI #859

merged 8 commits into from
Dec 20, 2023

Conversation

jgmelber
Copy link
Collaborator

No description provided.

@jgmelber
Copy link
Collaborator Author

@andrej

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/8)

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (2/8)

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (3/8)

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (4/8)

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (5/8)

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (6/8)

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (7/8)

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (8/8)

Copy link
Contributor

github-actions bot commented Dec 12, 2023

Coverage Report

Created: 2023-12-20 08:31

Click here for information about interpreting this report.

FilenameFunction CoverageLine CoverageRegion CoverageBranch Coverage
Totals- - - -
Generated by llvm-cov -- llvm version 14.0.0

Copy link
Collaborator

@andrej andrej left a comment

Choose a reason for hiding this comment

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

It's really cool to see this in Python, Joe. Much cleaner than with the templates. I know you didn't request a review from me but I hope you don't mind that I left some comments. Feel free to ignore them. The comment I added to the C kernel file is the only one I feel strongly about.

@makslevental makslevental force-pushed the matmul branch 2 times, most recently from 5bc8d53 to 5b5f441 Compare December 13, 2023 05:00
@Xilinx Xilinx deleted a comment from github-actions bot Dec 13, 2023
@Xilinx Xilinx deleted a comment from github-actions bot Dec 13, 2023
@Xilinx Xilinx deleted a comment from github-actions bot Dec 13, 2023
@Xilinx Xilinx deleted a comment from github-actions bot Dec 13, 2023
@Xilinx Xilinx deleted a comment from github-actions bot Dec 13, 2023
@Xilinx Xilinx deleted a comment from github-actions bot Dec 13, 2023
@Xilinx Xilinx deleted a comment from github-actions bot Dec 13, 2023
@Xilinx Xilinx deleted a comment from github-actions bot Dec 13, 2023
@Xilinx Xilinx deleted a comment from github-actions bot Dec 13, 2023
@makslevental
Copy link
Contributor

@jgmelber n00b question: is it not possible to write the kernel code (stuff in mm.cc) in python as well? E.g, doesn't aievec exist and have a lowering to cpp that can emit roughly the same kind of stuff? Or are there lots of things missing from the aievec dialect that you therefore (today) have to write by hand (in cpp).

@jgmelber
Copy link
Collaborator Author

@jgmelber n00b question: is it not possible to write the kernel code (stuff in mm.cc) in python as well? E.g, doesn't aievec exist and have a lowering to cpp that can emit roughly the same kind of stuff? Or are there lots of things missing from the aievec dialect that you therefore (today) have to write by hand (in cpp).

As far as I understand there are still some missing pieces. But verifying the performance of aievec is something that needs to be done


#define zero_scalar_c_func(ctype_in, mlir_type_in, ctype_out, mlir_type_out, \
r, s, t) \
void zero_scalar_##mlir_type_out((ctype_out) *c_out) { \
Copy link
Contributor

Choose a reason for hiding this comment

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

[clang-format] reported by reviewdog 🐶

Suggested change
void zero_scalar_##mlir_type_out((ctype_out) *c_out) { \
void zero_scalar_##mlir_type_out((ctype_out) * c_out) { \

@AndraBisca
Copy link
Collaborator

Thank you for all of your comments @andrej, they are really helpful!
While I didn't resolve all of them, I think it might be best to merge this PR for now to avoid accumulating conflicts with main. @jgmelber can make any subsequent changes in another update-PR.

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

@makslevental makslevental force-pushed the matmul branch 2 times, most recently from 95ba3ab to 4f19d28 Compare December 20, 2023 06:37
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.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/3)

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (2/3)

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.

⚠️ Clang-Tidy found issue(s) with the introduced code (3/3)

@makslevental makslevental force-pushed the matmul branch 11 times, most recently from 8f67aef to a48f16e Compare December 20, 2023 07:16
@makslevental
Copy link
Contributor

Heads up @AndraBisca I marked reference_designs/autocorrelation/objectFifo_version/aie.mlir as XFAIL because it uses old objectfifo syntax that I can't quite patch up.

@makslevental makslevental force-pushed the matmul branch 7 times, most recently from f73ce9e to a84809d Compare December 20, 2023 08:23
@makslevental makslevental merged commit e6831a1 into main Dec 20, 2023
32 checks passed
@makslevental makslevental deleted the matmul branch December 20, 2023 08:46
@AndraBisca
Copy link
Collaborator

Heads up @AndraBisca I marked reference_designs/autocorrelation/objectFifo_version/aie.mlir as XFAIL because it uses old objectfifo syntax that I can't quite patch up.

Thank you for the heads-up @makslevental. I'll take a look at it very soon, along with all the other reference designs and clean them up.

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.

6 participants