-
Notifications
You must be signed in to change notification settings - Fork 39
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
Remove PrimitivesTag and PredicatesTag #1172
Conversation
e1d10c2
to
4e21e0e
Compare
4e21e0e
to
7d044fb
Compare
7d044fb
to
23603ba
Compare
Rebased to resolve conflicts. |
23603ba
to
4fb3a91
Compare
Rebased to resolve conflicts. |
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.
Would you remind me whether we considered introducing a newer traits (not just a rename) and have the old access traits automatically translated to it if no specialization is provided?
@@ -58,27 +53,18 @@ struct ArborX::AccessTraits<ArborX::Experimental::AttachIndices<Values, Index>, | |||
} | |||
KOKKOS_FUNCTION static auto get(Self const &self, int i) |
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.
KOKKOS_FUNCTION static auto get(Self const &self, int i) | |
KOKKOS_FUNCTION static auto get(Self const &self, Index i) |
And Index(i) -> I
below in both branches of the if constexpr
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 breaks custom index test in tstCompileOnlyAccessTraits.cpp
, as we can't call Access::get(values, CustomIndex)
.
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 would potentially want us to revisit but it does not need to be done right now
I don't think so. |
What are your thoughts about it? I expect that is implementable and may be nice to have but I lost track of all the changes and maybe that's just overkill. |
Just so that I understand, you are talking about introducing something like |
Yes pretty much
What you said above, "providing specialization that would take tagged |
I can try to implement this. So, we would advertise new traits ( |
Correct
That was my question |
I see little. I'd rather have users to go through upgrade once, with the major version release. In addition, I think it would give users a chance to reexamine their I do want to decide what we should call the traits. Doesn't have to be done here, though. |
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.
Fine with renaming later
PrimitivesTag
andPredicatesTag
check_valid_access_traits
and provideCheckReturnTypeTag
for predicatesNewer version of #997. Don't know if we want to rename
AccessTraits
toRangeTraits
.