-
Notifications
You must be signed in to change notification settings - Fork 74
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
Redefine pitches #2093
Redefine pitches #2093
Conversation
14caad1
to
60936b0
Compare
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.
why the change from
struct Action {
static auto action(...) { ... }
};
to
struct Action {
auto operator()(...) const { ... }
};
?
a4bb1f9
to
0bb73bc
Compare
I tried hard to find the corresponding issue, but probably it was just a long discussion on a PR somewhere. I argued for using I don't care too much what we do. |
bf207e8
to
777baed
Compare
If the reason is to avoid duplicating the name you could use something like But I don't really mind, I was only curious about the change. |
26df5ae
to
ce28ec3
Compare
TExtent const& extent, | ||
std::size_t pitchBytes) | ||
std::size_t pitchBytes, | ||
TExtent const& extent) |
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.
This should be swapped back.
I really appreciate how a MD-subscript operation into a buffer is now the dot product between index and pitch vector <3. This is also consistent with some MD array talk I have seen. |
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.
only one question but nothing against the PR at all.
This PR shifts the values returned from getPitchesInBytes to be consistent with std::mdspan (except in bytes). Example: the pitch vector for the extent {42, 10, 2} changes: Before: {4, 3360, 80, 8} After: {80, 8, 4} The new meaning is that the pitch value is the number of bytes to jump from one element to the next in the given dimension. Fixes: alpaka-group#2083
ce28ec3
to
b99d092
Compare
Hmm. Something got stuck with the readthedocs build. The error saids: "This build was terminated due to inactivity. If you continue to encounter this error, file a support request with and reference this build id (21768482)." |
These are changes missed as part of alpaka-group#2093. Fixes: alpaka-group#2124
These are changes missed as part of alpaka-group#2093. Fixes: alpaka-group#2124
With alpaka-group#245 the latest alpaka version was introduced in cupla. The alpaka pitch definition has changed with alpaka-group/alpaka#2093. We forget to change the usage in alpaka-group#245. This PR handels the pitch correctly.
This PR shifts the values returned from getPitchesInBytes to be consistent with std::mdspan (except in bytes).
Example: the pitch vector for the extent {42, 10, 2} changes:
Before: {4, 3360, 80, 8}
After: {80, 8, 4}
The new meaning is that the pitch value is the number of bytes to jump from one element to the next in the given dimension.
Fixes: #2083
Waiting on #2092 to be merged before rebase.This is a silent breaking change. However, to a function that was only introduced a few days ago with #2092.