Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::Gpu::SyncAtExitOnly Struct Reference

#include <AMReX_GpuDevice.H>

Inheritance diagram for amrex::Gpu::SyncAtExitOnly:
amrex::Gpu::NoSyncRegion

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~SyncAtExitOnly()

amrex::Gpu::SyncAtExitOnly::~SyncAtExitOnly ( )
inline

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