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

Update strided_index_range to strided_slice #231

Merged
merged 4 commits into from
Jan 25, 2023

Conversation

crtrott
Copy link
Member

@crtrott crtrott commented Jan 24, 2023

No description provided.

using offset_type = OffsetType;
using extent_type = ExtentType;
using stride_type = StrideType;

OffsetType offset;
ExtentType extent;
StrideType stride;

static_assert(is_integral<OffsetType>::value || __mdspan_is_integral_constant<OffsetType>::value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding the Mandates! : - )

Optionally, given that the P2630 implementation only needs to support C++17, would you consider using is_integral_v<T> instead of is_integral<T>::value?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I got confused with the error message for is_integra_constant_v which doesn't exist :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

changed that back.

Copy link
Contributor

@nmm0 nmm0 left a comment

Choose a reason for hiding this comment

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

Looks pretty straightforward to me

@crtrott crtrott merged commit 9ce9099 into kokkos:stable Jan 25, 2023
@crtrott crtrott deleted the update-strided-slice branch January 25, 2023 18:06
mhoemmen added a commit to mhoemmen/mdspan that referenced this pull request Jul 26, 2023
Don't unconditionally include <execution>.

Fixes kokkos#231.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants