Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::AsyncOut Namespace Reference

Classes

struct  WriteInfo
 Slot assignment metadata for ranks sharing an output file. More...
 

Functions

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