Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
mpi_utilities.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  load_balance
 

Macros

#define MPI_Barrier(Z)
 
#define MPI_Bcast(V, W, X, Y, Z)
 
#define MPI_Finalize()
 
#define MPI_Comm_size(Y, Z)
 
#define MPI_Comm_rank(Y, Z)
 
#define MPI_Init(Y, Z)
 
#define MPI_Reduce(T, U, V, W, X, Y, Z)
 
#define MPI_File_open(V, W, X, Y, Z)
 
#define MPI_File_set_view(U, V, W, X, Y, Z)
 
#define MPI_File_get_size(Y, Z)
 
#define MPI_File_write(V, W, X, Y, Z)
 
#define MPI_File_close(Z)
 

Typedefs

typedef long MPI_Offset
 
typedef long MPI_Status
 
typedef void * MPI_File
 

Enumerations

enum  MPI_state { MS_DEFAULT , MS_GRID , MS_POST_GRID }
 

Functions

int total_insanity (MPI_File, int, MPI_Status *)
 
string GridPointPrefix (int n)
 
void process_output ()
 
void append_file (FILE *, const char *)
 
void append_file (MPI_File, const char *)
 

Variables

int MPI_SUCCESS
 
int MPI_ERR_INTERN
 
MPI_File MPI_FILE_NULL
 
int mpi_mode_r
 
int mpi_mode_w
 
int mpi_mode_a
 

Macro Definition Documentation

◆ MPI_Barrier

#define MPI_Barrier ( Z)
Value:
T TotalInsanityAsStub()
Definition cddefines.h:495

Referenced by load_balance::finalize(), main(), and phymir_state< X, Y, NP, NSTR >::p_barrier().

◆ MPI_Bcast

◆ MPI_Comm_rank

#define MPI_Comm_rank ( Y,
Z )
Value:

Referenced by main().

◆ MPI_Comm_size

#define MPI_Comm_size ( Y,
Z )
Value:

Referenced by main().

◆ MPI_File_close

#define MPI_File_close ( Z)

◆ MPI_File_get_size

#define MPI_File_get_size ( Y,
Z )

◆ MPI_File_open

#define MPI_File_open ( V,
W,
X,
Y,
Z )

◆ MPI_File_set_view

#define MPI_File_set_view ( U,
V,
W,
X,
Y,
Z )

◆ MPI_File_write

#define MPI_File_write ( V,
W,
X,
Y,
Z )
Value:
int total_insanity(MPI_File, int, MPI_Status *)
Definition mpi_utilities.cpp:54

Referenced by append_file().

◆ MPI_Finalize

#define MPI_Finalize ( )
Value:

Referenced by main().

◆ MPI_Init

#define MPI_Init ( Y,
Z )
Value:

Referenced by main().

◆ MPI_Reduce

#define MPI_Reduce ( T,
U,
V,
W,
X,
Y,
Z )

Typedef Documentation

◆ MPI_File

typedef void* MPI_File

◆ MPI_Offset

typedef long MPI_Offset

◆ MPI_Status

typedef long MPI_Status

Enumeration Type Documentation

◆ MPI_state

enum MPI_state
Enumerator
MS_DEFAULT 
MS_GRID 
MS_POST_GRID 

Function Documentation

◆ append_file() [1/2]

void append_file ( FILE * dest,
const char * source )

append_file: append output produced on file <source> to open file descriptor <dest>

References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, NULL, and open_data().

Referenced by GridGatherOutputParallel(), GridGatherOutputSequential(), optimize_phymir(), phymir_state< X, Y, NP, NSTR >::p_process_output(), and process_output().

Here is the call graph for this function:

◆ append_file() [2/2]

void append_file ( MPI_File dest,
const char * source )

append_file: append output produced on file <source> to open file handle <dest> using MPI I/O

References AS_LOCAL_ONLY_TRY, DEBUG_ENTRY, MPI_File_write, NULL, and open_data().

Here is the call graph for this function:

◆ GridPointPrefix()

string GridPointPrefix ( int n)
inline

GridPointPrefix: generate filename prefix for any files associated with a single point in a grid

Referenced by check_grid_file(), fix_grid_file(), GridGatherOutputParallel(), GridGatherOutputSequential(), main(), process_output(), SaveGrid(), and vary_input().

◆ process_output()

void process_output ( )

process_output: concatenate output files produced in MPI grid run

process_output: concatenate output files produced in grid run

References append_file(), ASSERT, check_grid_file(), cpu, DEBUG_ENTRY, fix_grid_file(), fprintf(), grid, GridGatherOutput(), GridPointPrefix(), ioQQQ, ipPun, NUM_OUTPUT_TYPES, open_data(), rd_block(), rfield, save, and saveFITSfile().

Referenced by main().

Here is the call graph for this function:

◆ total_insanity()

int total_insanity ( MPI_File ,
int ,
MPI_Status *  )

References TotalInsanityAsStub().

Here is the call graph for this function:

Variable Documentation

◆ MPI_ERR_INTERN

int MPI_ERR_INTERN
extern

Referenced by t_cpu_i::open_data.

◆ MPI_FILE_NULL

MPI_File MPI_FILE_NULL
extern

◆ mpi_mode_a

int mpi_mode_a
extern

◆ mpi_mode_r

int mpi_mode_r
extern

Referenced by t_cpu_i::open_data.

◆ mpi_mode_w

int mpi_mode_w
extern

◆ MPI_SUCCESS

int MPI_SUCCESS
extern

Referenced by t_cpu_i::open_data.