![]() |
Block-Structured AMR Software Framework
|
#include <AMReX_GpuDevice.H>
Public Member Functions | |
| ~SyncAtExitOnly () | |
Public Member Functions inherited from amrex::Gpu::NoSyncRegion | |
| NoSyncRegion () noexcept | |
| ~NoSyncRegion () | |
| bool | inNoSyncRegionPreviously () const |
Additional Inherited Members | |
Protected Attributes inherited from amrex::Gpu::NoSyncRegion | |
| bool | m_prev_flag |
This struct provides a RAII-style mechanism for disabling GPU synchronization and calling Gpu::streamSynchronizeActive when going out of scope if we are in sync region previously. Note that explicit calls to Gpu::streamSynchronize and Gpu::synchronize still work.
|
inline |