What is MPI_Error_string?
MPI library
MPI (Message Passing Interface) is a library that enables you to write parallel programs in C or Fortran77. The library uses commonly available operating system services to create parallel processes and exchange information among these processes.
MPI_Error_string
This method returns a string for an error code.
Syntax
int MPI_Error_string(
int errorcode,
char *string,
int *resultlen
);
Parameters
-
errorcodeis the error code returned by an MPI routine or method. -
stringis an output parameter representing the text associated with the error code. -
resultlenis an output parameter representing the length of the string.
Return value
-
The function returns an error if it is unsuccessful. By default, the error aborts the MPI job.
-
In case of success, it returns
MPI_SUCCESS- the value returned upon successful termination of any MPI routine. -
MPI_ERR_ARGis returned if an argument is invalid.
Free Resources