#include <KokkosPerfCounters.hpp>
|
| | Scope (Counters &counters) |
| | Attribute this thread's nested Kokkos dispatches to one solver counter set.
|
| |
| | ~Scope () |
| | Restore this thread's previous counter attribution on scope exit.
|
| |
| | Scope (const Scope &)=delete |
| |
◆ Scope() [1/2]
| openswmm::twoD::gpu::kperf::Scope::Scope |
( |
Counters & | counters | ) |
|
|
inlineexplicit |
Attribute this thread's nested Kokkos dispatches to one solver counter set.
- Parameters
-
| [in,out] | counters | Borrowed per-solver counters; must outlive this scope and any callbacks dispatched within it. |
- Postcondition
- Saves the previous thread-local active pointer and installs counters. Supports nested scopes on one thread; a counter object must not be used concurrently on multiple threads. No allocation or runtime registration.
◆ ~Scope()
| openswmm::twoD::gpu::kperf::Scope::~Scope |
( |
| ) |
|
|
inline |
Restore this thread's previous counter attribution on scope exit.
- Postcondition
- Restores the saved borrowed pointer; owns/deletes no Counters and invokes no Kokkos fence. Every in-scope callback pair must have completed before destruction.
◆ Scope() [2/2]
| openswmm::twoD::gpu::kperf::Scope::Scope |
( |
const Scope & | | ) |
|
|
delete |
The documentation for this class was generated from the following file: