OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::twoD::gpu::kperf::Scope Class Reference

#include <KokkosPerfCounters.hpp>

Collaboration diagram for openswmm::twoD::gpu::kperf::Scope:

Public Member Functions

 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
 

Constructor & Destructor Documentation

◆ 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]countersBorrowed 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.
Here is the caller graph for this function:

◆ ~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
Here is the call graph for this function:

The documentation for this class was generated from the following file: