-
Notifications
You must be signed in to change notification settings - Fork 14
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
First matrix cleanup #1007
Conversation
d16559d
to
0184583
Compare
0184583
to
93893b3
Compare
cscs-ci run |
cscs-ci run |
There was a problem hiding this 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.
/// which references elements | ||
/// that are already allocated in the memory with a column major layout. |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
/// @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 { |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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.
Blocked by #976.
See #1006 for details.