Mercury
na_mpi.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Argonne National Laboratory, Department of Energy,
3  *                    UChicago Argonne, LLC and The HDF Group.
4  * All rights reserved.
5  *
6  * The full copyright notice, including terms governing use, modification,
7  * and redistribution, is contained in the COPYING file that can be
8  * found at the root of the source code distribution tree.
9  */
10 
11 #ifndef NA_MPI_H
12 #define NA_MPI_H
13 
14 #include "na.h"
15 
16 #include <mpi.h>
17 
18 /* MPI initialization flags */
19 #define MPI_INIT_SERVER 0x01 /* set up to listen for unexpected messages */
20 #define MPI_INIT_STATIC 0x10 /* set up static inter-communicator */
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
35 NA_EXPORT na_return_t
36 NA_MPI_Set_init_intra_comm(MPI_Comm intra_comm);
37 
46 NA_EXPORT const char *
49  );
50 
57 #ifdef NA_MPI_HAS_GNI_SETUP
58 NA_EXPORT na_return_t
59 NA_MPI_Gni_job_setup(void);
60 #endif
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif /* NA_MPI_H */
NA_EXPORT const char * NA_MPI_Get_port_name(na_class_t *na_class)
Get port name used by server (only valid if plugin initialized with MPI_INIT_SERVER).
enum na_return na_return_t
NA_EXPORT na_return_t NA_MPI_Set_init_intra_comm(MPI_Comm intra_comm)
Set MPI intra_comm used when initializing the MPI plugin.