Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_AsyncOut.cpp File Reference
#include <AMReX_AsyncOut.H>
#include <AMReX_BackgroundThread.H>
#include <AMReX_ParallelDescriptor.H>
#include <AMReX_Vector.H>
#include <AMReX_ParmParse.H>
#include <AMReX_Utility.H>
#include <AMReX.H>

Namespaces

namespace  amrex
 
namespace  amrex::AsyncOut
 

Functions

void amrex::AsyncOut::Initialize ()
 Initialize the asynchronous output infrastructure.
 
void amrex::AsyncOut::Finalize ()
 Tear down resources owned by the asynchronous output subsystem.
 
bool amrex::AsyncOut::UseAsyncOut ()
 Query whether asynchronous output is enabled at runtime.
 
WriteInfo amrex::AsyncOut::GetWriteInfo (int rank)
 Compute this rank's write slot information for multi-file output.
 
void amrex::AsyncOut::Submit (std::function< void()> &&a_f)
 Submit a job functor to the asynchronous writer thread.
 
void amrex::AsyncOut::Submit (std::function< void()> const &a_f)
 
void amrex::AsyncOut::Finish ()
 Block until all submitted asynchronous jobs have completed.
 
void amrex::AsyncOut::Wait ()
 Called inside a submitted user job function to wait for this rank's turn to access the file.
 
void amrex::AsyncOut::Notify ()
 Called inside a submitted user job function to notify the next rank sharing the file that it may proceed.