-
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
Refactor RetiledMatrix
into Matrix
#935
Conversation
cscs-ci run |
f4d8e03
to
3890a18
Compare
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.
I have only a concern.
Algorithm implementations might not work with a retiled matrix as argument.
Therefore for each function that takes a matrix as argument we should either enhance the test and make sure it works or add an assertion.
Of course updating all the tests and fixing the algorithms does not belong to this PR.
Should we add an assertion at least in the public algorithms until they are tested and known to work?
Note: as a retiled matrix is now a Matrix
, retiled of retiled will be needed. (e.g for complete functionality of #933)
Good point.
I think that would be good. I will add that here.
Yeah, with the discussion in #933 I would include the redistributing |
@rasolca, @albestro see 0f5a091 for assertions on algorithms. I added a helper function which I now called |
c962edd
to
0f5a091
Compare
What about |
I like both |
I'll go with |
See f3ecb55 for the renaming to
to
to match? |
No strong preference on my side. |
f3ecb55
to
f42d2ed
Compare
cscs-ci run |
Fixes #905.
I moved the creation of a
RetiledMatrix
intoMatrix
methodsretiledSubPipeline{,Const}
to mirror #898. Since the implementation is otherwise identical I've kept the "sub pipeline" name, but addedretiled
as a prefix (though the naming concerns from #898 apply here as well). I've removed theRetiledMatrix
class and replaced it withMatrix
. I've added an assertion to only allow retiling if theMatrix
isn't already "retiled", i.e. if the tile size is the same as the block size. We can attempt to lift this restriction later if it's useful but I won't be doing that here. #923 also applies for retiled matrices and I'm not doing that in this PR either.This should probably wait for #933 to be merged first, or maybe not...