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

Performance suboptimal for small matrices #29

Open
xor2k opened this issue Feb 15, 2025 · 1 comment
Open

Performance suboptimal for small matrices #29

xor2k opened this issue Feb 15, 2025 · 1 comment

Comments

@xor2k
Copy link

xor2k commented Feb 15, 2025

Dear AOCL Team,

I'm currently working to improve Numpy's matmul for the strided case and I ran a large grid search with different BLAS frameworks, see

numpy/numpy#23752 (comment)

Here a repost of the plots:

Image
blas_benchmark_v2.pdf

The plots show the improvement of performance of the respective BLAS framework plus copying over naïve matrix multiplication.

AOCL is based on BLIS. It is clearly visible that for the case n=100, AOCL provides a substantial improvement over BLIS (see purple shimmer). However, that is not the case for smaller matrices. Some countermeasures have been taken and left a triangular pattern in the performance chart.

I wonder whether with the help of these plots performance can be improved for smaller matrices. I can do more benchmarks and plots like that if interested and also provide some code.

Best from Berlin, Michael

@kvaragan
Copy link
Collaborator

kvaragan commented Feb 17, 2025

Hi Michael,
Thanks for sharing this data. This is very useful.
What is the data-precision we are dealing with? Is it single precision or double precision?
Which version of AOCL was tried out ? -

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

No branches or pull requests

2 participants