Skip to content

Refactor: Move matrix packing outside GEMM kernels #10

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shalinib-ibm
Copy link
Owner

In class tinyBLAS_PPC, previously, packing of input matrices A and B was performed on-the-fly within each GEMM microkernel. This patch refactors the code to decouple packing from kernel by introducing a preprocessing step that packs matrices once before any kernel is invoked.

Make sure to read the contributing guidelines before submitting a PR

In class tinyBLAS_PPC, previously, packing of input matrices A and B
was performed on-the-fly within each GEMM microkernel.
This patch refactors the code to decouple packing from kernel
by introducing a preprocessing step that packs matrices once before any kernel is invoked.

Benefits:
- Enables better memory locality and data reuse
- Simplifies the kernel logic by focusing purely on computation
- Improves overall GEMM performance, especially for large matrix sizes

Signed-off-by: Shalini Salomi Bodapati <[email protected]>
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.

1 participant