|
Kokkos Core Kernels Package Version of the Day
|
A thread safe view to a bitset. More...
#include <Kokkos_Bitset.hpp>
Public Member Functions | |
| Bitset (unsigned arg_size) | |
| arg_size := number of bit in set | |
| template<class... P> | |
| Bitset (const Impl::ViewCtorProp< P... > &arg_prop, unsigned arg_size) | |
| KOKKOS_FORCEINLINE_FUNCTION unsigned | size () const |
| unsigned | count () const |
| void | set () |
| void | reset () |
| void | clear () |
| KOKKOS_FORCEINLINE_FUNCTION bool | set (unsigned i) const |
| KOKKOS_FORCEINLINE_FUNCTION bool | reset (unsigned i) const |
| KOKKOS_FORCEINLINE_FUNCTION bool | test (unsigned i) const |
| KOKKOS_FORCEINLINE_FUNCTION unsigned | max_hint () const |
| KOKKOS_INLINE_FUNCTION Kokkos::pair< bool, unsigned > | find_any_set_near (unsigned hint, unsigned scan_direction=BIT_SCAN_FORWARD_MOVE_HINT_FORWARD) const |
| KOKKOS_INLINE_FUNCTION Kokkos::pair< bool, unsigned > | find_any_unset_near (unsigned hint, unsigned scan_direction=BIT_SCAN_FORWARD_MOVE_HINT_FORWARD) const |
A thread safe view to a bitset.
Definition at line 49 of file Kokkos_Bitset.hpp.
|
inline |
arg_size := number of bit in set
Definition at line 79 of file Kokkos_Bitset.hpp.
|
inline |
Ensure that allocation properties are consistent.
Update 'label' property and allocate.
Definition at line 82 of file Kokkos_Bitset.hpp.
|
inline |
number of bits in the set can be call from the host or the device
Definition at line 121 of file Kokkos_Bitset.hpp.
|
inline |
number of bits which are set to 1 can only be called from the host
Definition at line 125 of file Kokkos_Bitset.hpp.
|
inline |
set all bits to 1 can only be called from the host
Definition at line 132 of file Kokkos_Bitset.hpp.
|
inline |
set all bits to 0 can only be called from the host
Definition at line 148 of file Kokkos_Bitset.hpp.
|
inline |
set all bits to 0 can only be called from the host
Definition at line 152 of file Kokkos_Bitset.hpp.
|
inline |
set i'th bit to 1 can only be called from the device
Definition at line 157 of file Kokkos_Bitset.hpp.
|
inline |
set i'th bit to 0 can only be called from the device
Definition at line 170 of file Kokkos_Bitset.hpp.
|
inline |
return true if the i'th bit set to 1 can only be called from the device
Definition at line 183 of file Kokkos_Bitset.hpp.
|
inline |
used with find_any_set_near or find_any_unset_near functions returns the max number of times those functions should be call when searching for an available bit
Definition at line 200 of file Kokkos_Bitset.hpp.
|
inline |
find a bit set to 1 near the hint returns a pair< bool, unsigned> where if result.first is true then result.second is the bit found and if result.first is false the result.second is a new hint
Definition at line 207 of file Kokkos_Bitset.hpp.
|
inline |
find a bit set to 0 near the hint returns a pair< bool, unsigned> where if result.first is true then result.second is the bit found and if result.first is false the result.second is a new hint
Definition at line 230 of file Kokkos_Bitset.hpp.