-
Notifications
You must be signed in to change notification settings - Fork 45
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 concept for execution space instances #581
Conversation
b7cf8e2
to
b2e84bf
Compare
Co-authored-by: Damien L-G <[email protected]>
@@ -102,8 +102,7 @@ and ``OpenMPTarget``, the current state of the Kokkos |ExecutionSpaceTwo|_ conce | |||
|
|||
template <typename Ex> | |||
concept ExecutionSpace = | |||
CopyConstructible<Ex> && | |||
DefaultConstructible<Ex> && | |||
SemiRegular<Ex> && |
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/kokkos#5398 (Kokkos 4.0.00) introduced the comparison operator. I'm not sure if that's worth mentioning.
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.
The "functionality" section is a a bit weird and somewhat redundant with what comes after the synopsis.
I am not expecting you to fix here abut I am curious if others agree with that observation.
{ ex.fence() }; | ||
{ ex.name() } -> const char*; | ||
{ ex.concurrency() } -> int; |
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.
Remind me, did we promise anything about the return type?
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.
That's how its implemented and how we describe it in all documentation so far. I don't know if there would be any motivation to change it to size_type
or something the like.
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 meant more returns an integral type or something that is convertible to int.
Anyway that's fine by me if all backend do indeed return an int
Co-authored-by: Damien L-G <[email protected]>
Related to kokkos/kokkos#7319.