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

#include <AMReX_GpuControl.H>

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

Public Member Functions

 NoSyncRegion () noexcept
 
 ~NoSyncRegion ()
 
bool inNoSyncRegionPreviously () const
 

Protected Attributes

bool m_prev_flag
 

Detailed Description

This struct provides a RAII-style mechanism for disabling GPU synchronization in MFIter by default. Note that explicit calls to Gpu::streamSynchronize and Gpu::synchronize still work.

Constructor & Destructor Documentation

◆ NoSyncRegion()

amrex::Gpu::NoSyncRegion::NoSyncRegion ( )
inlinenoexcept

◆ ~NoSyncRegion()

amrex::Gpu::NoSyncRegion::~NoSyncRegion ( )
inline

Member Function Documentation

◆ inNoSyncRegionPreviously()

bool amrex::Gpu::NoSyncRegion::inNoSyncRegionPreviously ( ) const
inline

Member Data Documentation

◆ m_prev_flag

bool amrex::Gpu::NoSyncRegion::m_prev_flag
protected

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