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

Support different tile and block size in Matrix #909

Merged
merged 8 commits into from
Jul 28, 2023

Conversation

msimberg
Copy link
Collaborator

@msimberg msimberg commented Jun 21, 2023

Moving over the changes from #908 (comment) to a separate PR.

Do we want to rename LayoutInfo::blockSize to LayoutInfo::tileSize? tileSize can be equal to blockSize but more generally LayoutInfo is concerned with the tile size. Edit: I haven't done any renamings like this because in some cases we call things like square_blocksize and for that we want everything to have a blockSize method. I'm punting this down the road.

@msimberg msimberg added this to the API refactoring milestone Jun 21, 2023
@msimberg msimberg self-assigned this Jun 21, 2023
@msimberg
Copy link
Collaborator Author

cscs-ci run

@msimberg
Copy link
Collaborator Author

msimberg commented Jul 5, 2023

Waiting for #898 before I continue here since these will both touch test_matrix.cpp.

@msimberg msimberg force-pushed the matrix-support-generic-distribution branch from 6b32df6 to 301fb44 Compare July 12, 2023 13:37
@msimberg
Copy link
Collaborator Author

cscs-ci run

@msimberg msimberg marked this pull request as ready for review July 12, 2023 15:40
@msimberg
Copy link
Collaborator Author

This so far makes some minimal relaxations to allow constructing matrices with different tile size and block size. I've added some tests, but coverage could likely be better. I'm currently only exposing this functionality through the Matrix(Distribution) constructor, i.e. I haven't added any "custom" constructors that allow passing a tile and block size directly (the existing constructors which take a block size are still there).

Copy link
Collaborator

@albestro albestro left a comment

Choose a reason for hiding this comment

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

LGTM

@rasolca rasolca merged commit 9b7f0e0 into eth-cscs:master Jul 28, 2023
@msimberg msimberg deleted the matrix-support-generic-distribution branch July 28, 2023 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants