Commit cc25a421 authored by Junchao Zhang's avatar Junchao Zhang Committed by Antonio J. Pena
Browse files

Add new MPI_T routines and an error code in headers

They are defined in upcoming MPI-3.1.
See https://svn.mpi-forum.org/trac/mpi-forum-web/ticket/377

Signed-off-by: default avatarAntonio J. Pena <apenya@mcs.anl.gov>
parent c1df83ef
......@@ -865,12 +865,13 @@ typedef int (MPIX_Grequest_wait_function)(int, void **, double, MPI_Status *);
#define MPI_T_ERR_PVAR_NO_STARTSTOP 70 /* Pvar can't be started or stopped */
#define MPI_T_ERR_PVAR_NO_WRITE 71 /* Pvar can't be written or reset */
#define MPI_T_ERR_PVAR_NO_ATOMIC 72 /* Pvar can't be R/W atomically */
#define MPI_T_ERR_INVALID_NAME 73 /* Name doesn't match */
#define MPI_ERR_LASTCODE 0x3fffffff /* Last valid error code for a
predefined error class */
/* WARNING: this is also defined in mpishared.h. Update both locations */
#define MPICH_ERR_LAST_CLASS 72 /* It is also helpful to know the
#define MPICH_ERR_LAST_CLASS 73 /* It is also helpful to know the
last valid class */
#define MPICH_ERR_FIRST_MPIX 100 /* Define a gap here because sock is
......@@ -1530,6 +1531,9 @@ int MPI_T_category_get_cvars(int cat_index, int len, int indices[]);
int MPI_T_category_get_pvars(int cat_index, int len, int indices[]);
int MPI_T_category_get_categories(int cat_index, int len, int indices[]);
int MPI_T_category_changed(int *stamp);
int MPI_T_cvar_get_index(const char *name, int *cvar_index);
int MPI_T_pvar_get_index(const char *name, int var_class, int *pvar_index);
int MPI_T_category_get_index(const char *name, int *cat_index);
/* End Skip Prototypes */
......@@ -2173,6 +2177,9 @@ int PMPI_T_category_get_cvars(int cat_index, int len, int indices[]);
int PMPI_T_category_get_pvars(int cat_index, int len, int indices[]);
int PMPI_T_category_get_categories(int cat_index, int len, int indices[]);
int PMPI_T_category_changed(int *stamp);
int PMPI_T_cvar_get_index(const char *name, int *cvar_index);
int PMPI_T_pvar_get_index(const char *name, int var_class, int *pvar_index);
int PMPI_T_category_get_index(const char *name, int *cat_index);
/* End Skip Prototypes */
......
......@@ -62,7 +62,7 @@
#include "mpierrs.h"
/* FIXME: This is extracted from mpi.h.in, where it may not be appropriate */
#define MPICH_ERR_LAST_CLASS 72 /* It is also helpful to know the
#define MPICH_ERR_LAST_CLASS 73 /* It is also helpful to know the
last valid class */
#include "mpifunc.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment