Use to count events that occurs during Monte-Carlo processing cycles.
More...
#include <events.hpp>
|
| using | event_view_type = Kokkos::View<std::size_t*, Kokkos::LayoutStride, Kokkos::SharedSpace> |
|
| | EventContainer () |
| | Default container, initalise counter.
|
| std::array< std::size_t, number_event_type > | get_span () const |
| | Get a packed copy of the event counters.
|
| KOKKOS_INLINE_FUNCTION void | clear () const |
| | Reset counters.
|
| template<EventType event> |
| constexpr std::size_t | get () const |
| | Getter to specific event counter.
|
| template<EventType event> |
| constexpr std::size_t | get_cumulative () const |
| | Getter to specific event counter.
|
| template<EventType event> |
| KOKKOS_FORCEINLINE_FUNCTION constexpr void | incr () const |
| | Increment specific event counter.
|
| template<EventType event> |
| KOKKOS_FORCEINLINE_FUNCTION constexpr void | add (size_t val) const |
| template<EventType event> |
| KOKKOS_FORCEINLINE_FUNCTION constexpr void | wrap_incr () const |
| template<class Archive> |
| void | save (Archive &ar) const |
| template<class Archive> |
| void | load (Archive &ar) |
Use to count events that occurs during Monte-Carlo processing cycles.
◆ event_view_type
◆ EventContainer()
| MC::EventContainer::EventContainer |
( |
| ) |
|
|
inline |
Default container, initalise counter.
◆ add()
| KOKKOS_FORCEINLINE_FUNCTION constexpr void MC::EventContainer::add |
( |
size_t | val | ) |
const |
|
inlineconstexpr |
◆ clear()
| KOKKOS_INLINE_FUNCTION void MC::EventContainer::clear |
( |
| ) |
const |
|
inline |
◆ get()
| std::size_t MC::EventContainer::get |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Getter to specific event counter.
- Template Parameters
-
- Warning
- This function is thread_safe because we get a copy of the current counter
◆ get_cumulative()
| std::size_t MC::EventContainer::get_cumulative |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Getter to specific event counter.
- Template Parameters
-
- Warning
- This function is thread_safe because we get a copy of the current counter
◆ get_span()
Get a packed copy of the event counters.
Storage is padded (see event_stride) so the counters are not contiguous any more: return a packed snapshot instead of a view of the raw buffer.
◆ incr()
| KOKKOS_FORCEINLINE_FUNCTION constexpr void MC::EventContainer::incr |
( |
| ) |
const |
|
inlineconstexpr |
Increment specific event counter.
- Warning
- This function is thread_safe and can be use in kernel
- Template Parameters
-
◆ load()
template<class Archive>
| void MC::EventContainer::load |
( |
Archive & | ar | ) |
|
|
inline |
◆ save()
template<class Archive>
| void MC::EventContainer::save |
( |
Archive & | ar | ) |
const |
|
inline |
◆ wrap_incr()
| KOKKOS_FORCEINLINE_FUNCTION constexpr void MC::EventContainer::wrap_incr |
( |
| ) |
const |
|
inlineconstexpr |
◆ _events
The documentation for this struct was generated from the following file: