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

Optimizations for long and narrow matrices #18

Open
ArrogantGao opened this issue Sep 28, 2023 · 1 comment
Open

Optimizations for long and narrow matrices #18

ArrogantGao opened this issue Sep 28, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@ArrogantGao
Copy link
Collaborator

ArrogantGao commented Sep 28, 2023

In this package we are using a padding stragety to handle the boundary elements as that of GEMM, and the minimum size of the block is set as $64 \times 32$ and $32 \times 64$ for matrix A and matrix B.
So that for narrow matrices which are widely used in tensor network calculations, there will be tons of useless calculations.
For example, when the size of the matrices are $4 \times 4 \times 10^6$, what is actually calculated are matrices with size of $64 \times 32 \times 10^6$, and only $\frac{1}{128}$ of these calculation are useful.

Optimizations for such long and narrow matrices are needed.

@ArrogantGao ArrogantGao added the enhancement New feature or request label Sep 28, 2023
@ArrogantGao
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant