ARTEMIS
Public Member Functions | Public Attributes | List of all members
ablastr::profiler::SynchronizeOnDestruct Struct Reference

#include <ProfilerWrapper.H>

Public Member Functions

 SynchronizeOnDestruct (bool const do_device_synchronize=false)
 
AMREX_FORCE_INLINE ~SynchronizeOnDestruct ()
 

Public Attributes

bool m_do_device_synchronize = false
 

Detailed Description

An object that conditionally calls device_synchronize() on destruction

Note that objects are destructed in the reverse order of declaration

Constructor & Destructor Documentation

◆ SynchronizeOnDestruct()

ablastr::profiler::SynchronizeOnDestruct::SynchronizeOnDestruct ( bool const  do_device_synchronize = false)
inline

◆ ~SynchronizeOnDestruct()

AMREX_FORCE_INLINE ablastr::profiler::SynchronizeOnDestruct::~SynchronizeOnDestruct ( )
inline

Member Data Documentation

◆ m_do_device_synchronize

bool ablastr::profiler::SynchronizeOnDestruct::m_do_device_synchronize = false

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