Kokkos Core Kernels Package
Version of the Day
|
class to generate unique ids base on the required amount of concurrency More...
#include <Kokkos_UniqueToken.hpp>
Public Member Functions | |
UniqueToken (execution_space const &=execution_space()) | |
create object size for concurrency on the given instance More... | |
KOKKOS_INLINE_FUNCTION size_type | size () const |
upper bound for acquired values, i.e. 0 <= value < size() More... | |
KOKKOS_INLINE_FUNCTION size_type | acquire () const |
acquire value such that 0 <= value < size() More... | |
KOKKOS_INLINE_FUNCTION void | release (size_type) const |
release a value acquired by generate More... | |
class to generate unique ids base on the required amount of concurrency
This object should behave like a ref-counted object, so that when the last instance is destroy resources are free if needed
Definition at line 41 of file Kokkos_UniqueToken.hpp.
Kokkos::Experimental::UniqueToken< ExecutionSpace, UniqueTokenScope >::UniqueToken | ( | execution_space const & | = execution_space() | ) |
create object size for concurrency on the given instance
This object should not be shared between instances
KOKKOS_INLINE_FUNCTION size_type Kokkos::Experimental::UniqueToken< ExecutionSpace, UniqueTokenScope >::size | ( | ) | const |
upper bound for acquired values, i.e. 0 <= value < size()
KOKKOS_INLINE_FUNCTION size_type Kokkos::Experimental::UniqueToken< ExecutionSpace, UniqueTokenScope >::acquire | ( | ) | const |
acquire value such that 0 <= value < size()
KOKKOS_INLINE_FUNCTION void Kokkos::Experimental::UniqueToken< ExecutionSpace, UniqueTokenScope >::release | ( | size_type | ) | const |
release a value acquired by generate