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

First matrix cleanup #1007

Merged
merged 7 commits into from
Nov 15, 2023
Merged

First matrix cleanup #1007

merged 7 commits into from
Nov 15, 2023

Conversation

rasolca
Copy link
Collaborator

@rasolca rasolca commented Oct 9, 2023

Blocked by #976.

See #1006 for details.

@rasolca rasolca marked this pull request as ready for review October 23, 2023 17:16
include/dlaf/matrix/matrix_base.h Outdated Show resolved Hide resolved
include/dlaf/matrix/matrix_base.h Outdated Show resolved Hide resolved
include/dlaf/matrix/matrix.h Outdated Show resolved Hide resolved
include/dlaf/matrix/matrix.h Outdated Show resolved Hide resolved
test/include/dlaf_test/matrix/matrix_local.h Show resolved Hide resolved
@rasolca rasolca requested a review from msimberg November 8, 2023 14:41
@rasolca
Copy link
Collaborator Author

rasolca commented Nov 8, 2023

cscs-ci run

@rasolca
Copy link
Collaborator Author

rasolca commented Nov 8, 2023

cscs-ci run

include/dlaf/matrix/matrix.h Show resolved Hide resolved
@rasolca rasolca merged commit 58c5cf9 into master Nov 15, 2023
4 checks passed
@rasolca rasolca deleted the rasolca/matrix/cleanup branch November 15, 2023 17:55
github-actions bot pushed a commit that referenced this pull request Nov 15, 2023
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.

Sorry, I had a couple of comments that I thought to have submitted, but they were still pending.

They are very minor, and in case they are useful, we can address them in following PRs.

Comment on lines +24 to +25
/// which references elements
/// that are already allocated in the memory with a column major layout.
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor: early newline in doc? is it needed?

/// that are already allocated in the memory with a column major layout.
///
/// @param[in] ld the leading dimension of the matrix,
/// @param[in] ptr is the pointer to the first element of the local part of the matrix,
Copy link
Collaborator

Choose a reason for hiding this comment

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

?

Suggested change
/// @param[in] ptr is the pointer to the first element of the local part of the matrix,
/// @param[in] ptr is the pointer to the first element of the matrix,

return layout_.blockSize();
}

TileElementSize block_size() const noexcept {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should the old one be marked as deprecated?

/// @pre @p ptr refers to an allocated memory region which can contain the elements of the local matrix
/// stored in the given layout.
template <Device D, class T>
Matrix<T, D> createMatrixFromTile(const LocalElementSize& size, const TileElementSize& block_size,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just an idea: what if we take the chance to give it a better name? createMatrixFromTileLayout would be longer, but less misleading.

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