NewMadeleine

Documentation

« back to PM2 home.
nm_aml.h File Reference
#include <nm_mpi.h>
Include dependency graph for nm_aml.h:

Go to the source code of this file.

Macros

#define my_pe   aml_my_pe
 
#define num_pes   aml_n_pes
 
#define aml_time()   MPI_Wtime()
 
#define aml_long_allsum(p)   MPI_Allreduce(MPI_IN_PLACE,p,1,MPI_LONG_LONG,MPI_SUM,MPI_COMM_WORLD)
 
#define aml_long_allmin(p)   MPI_Allreduce(MPI_IN_PLACE,p,1,MPI_LONG_LONG,MPI_MIN,MPI_COMM_WORLD)
 
#define aml_long_allmax(p)   MPI_Allreduce(MPI_IN_PLACE,p,1,MPI_LONG_LONG,MPI_MAX,MPI_COMM_WORLD)
 

Functions

int aml_init (int *, char ***)
 
void aml_finalize (void)
 
void aml_barrier (void)
 
void aml_register_handler (void(*f)(int, void *, int), int n)
 
void aml_send (void *srcaddr, int type, int length, int node)
 
int aml_my_pe (void)
 
int aml_n_pes (void)
 

Macro Definition Documentation

◆ aml_long_allmax

#define aml_long_allmax (   p)    MPI_Allreduce(MPI_IN_PLACE,p,1,MPI_LONG_LONG,MPI_MAX,MPI_COMM_WORLD)

Definition at line 42 of file nm_aml.h.

◆ aml_long_allmin

#define aml_long_allmin (   p)    MPI_Allreduce(MPI_IN_PLACE,p,1,MPI_LONG_LONG,MPI_MIN,MPI_COMM_WORLD)

Definition at line 41 of file nm_aml.h.

◆ aml_long_allsum

#define aml_long_allsum (   p)    MPI_Allreduce(MPI_IN_PLACE,p,1,MPI_LONG_LONG,MPI_SUM,MPI_COMM_WORLD)

Definition at line 40 of file nm_aml.h.

◆ aml_time

#define aml_time ( )    MPI_Wtime()

Definition at line 39 of file nm_aml.h.

◆ my_pe

#define my_pe   aml_my_pe

Definition at line 36 of file nm_aml.h.

◆ num_pes

#define num_pes   aml_n_pes

Definition at line 37 of file nm_aml.h.

Function Documentation

◆ aml_barrier()

void aml_barrier ( void  )
extern

◆ aml_finalize()

void aml_finalize ( void  )
extern

◆ aml_init()

int aml_init ( int *  ,
char ***   
)
extern

◆ aml_my_pe()

int aml_my_pe ( void  )
extern

◆ aml_n_pes()

int aml_n_pes ( void  )
extern

◆ aml_register_handler()

void aml_register_handler ( void(*)(int, void *, int)  f,
int  n 
)
extern

◆ aml_send()

void aml_send ( void *  srcaddr,
int  type,
int  length,
int  node 
)
extern