Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mpi_add_error_code(3openmpi) [osx man page]

MPI_Add_error_code(3OpenMPI)											      MPI_Add_error_code(3OpenMPI)

NAME
MPI_Add_error_code - Creates a new error code associated with errorclass SYNTAX
C Syntax #include <mpi.h> int MPI_Add_error_code(int errorclass, int *errorcode) Fortran Syntax INCLUDE 'mpif.h' MPI_ADD_ERROR_CODE(ERRORCLASS, ERRORCODE, IERROR) INTEGER ERRORCLASS, ERRORCODE, IERROR C++ Syntax #include <mpi.h> int MPI::Add_error_code(int errorclass, int* errorcode) INPUT PARAMETER
errorclass MPI error class (integer). OUTPUT PARAMETERS
errorcode Error code returned by an MPI routine or an MPI error class (integer). IERROR Fortran only: Error status (integer). DESCRIPTION
Creates a new error code associated with errorclass and returns its value in errorcode. NOTES
No function is provided to free error codes, as it is not expected that an application will create them in significant numbers. The value returned is always greater than or equal to MPI_ERR_LASTCODE. ERRORS
Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ func- tions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object. Before the error value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error. SEE ALSO
MPI_Add_error_class MPI_Error_class Open MPI 1.2 September 2006 MPI_Add_error_code(3OpenMPI)

Check Out this Related Man Page

MPI_Comm_call_errhandler(3OpenMPI)										MPI_Comm_call_errhandler(3OpenMPI)

NAME
MPI_Comm_call_errhandler - Passes the supplied error code to the error handler assigned to a communicator SYNTAX
C Syntax #include <mpi.h> int MPI_Comm_call_errhandler(MPI_Comm comm, int errorcode) Fortran Syntax INCLUDE 'mpif.h' MPI_COMM_CALL_ERRHANDLER(COMM, ERRORCODE, IERROR) INTEGER COMM, ERRORCODE, IERROR C++ Syntax #include <mpi.h> void MPI::Comm::Call_errhandler(int errorcode) const INPUT PARAMETER
comm communicator with error handler (handle). errorcode error code (integer). OUTPUT PARAMETERS
IERROR Fortran only: Error status (integer). DESCRIPTION
This function invokes the error handler assigned to the communicator comm with the supplied error code errorcode. If the error handler was successfully called, the process is not aborted, and the error handler returns, this function returns MPI_SUCCESS. NOTES
Users should note that the default error handler is MPI_ERRORS_ARE_FATAL. Thus, calling this function will abort the processes in comm if the default error handler has not been changed. ERRORS
Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ func- tions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object. See the MPI man page for a full list of MPI error codes. SEE ALSO
MPI_Comm_create_errhandler MPI_Comm_set_errhandler Open MPI 1.2 September 2006 MPI_Comm_call_errhandler(3OpenMPI)
Man Page

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

0403-057 Syntax error at line 52 : `)' is not expected.

Can someone please tell me wht is wrong with the following peice of code? I keep getting the following error - 0403-057 Syntax error at line 52 : `)' is not expected. case "${option_count}" in 1) java -Xms256m -Xmx1536m "${APPLNAME}" "${ACTION_TYPE}" > "${LOGFILE}" 2>... (2 Replies)
Discussion started by: Veenak15
2 Replies

2. High Performance Computing

MPI - Error on sending argv

Hi all, I write a simple MPI program to send a text message to another process. The code is below. (test.c) #include "mpi.h" #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char* argv) { int dest, noProcesses, processId; MPI_Status status; ... (0 Replies)
Discussion started by: awiles
0 Replies

3. UNIX for Dummies Questions & Answers

Syntax Error Script

Hi guys i'd like to show you this code of my script, where i couldn't find this error " #! /bin/bash #copiabin.sh: copia todos los archivos ejecutables a bin if then mkdir $HOME/bin fi # copia de archivos y contador N N=0 for ARCH in * do if # Si el archivo es... (9 Replies)
Discussion started by: Newer
9 Replies

4. Programming

OpenMP and MPI hybrid thread numbers

hi, I have two basic questions, I will be really grateful if I receive any comment from you, I have an MPI code where I am trying to implement OpenMP directives. The machine where I run the code has 16 cores. I run the code with export OMP_NUM_THREADS=2 mpirun -np 4 ./exec If I... (0 Replies)
Discussion started by: armando_2011
0 Replies

5. Shell Programming and Scripting

0403-057 Syntax error at line 17 : `(' is not expected.

Hi, While executing my code i am getting below Error: ./check_disk1: 0403-057 Syntax error at line 55 : `(' is not expected. My code is : #!/bin/ksh PROGNAME=`basename $0` STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 OS=$(uname) AWK="/usr/bin/awk"... (6 Replies)
Discussion started by: abodage
6 Replies

6. Shell Programming and Scripting

Error: "Syntax error; unexpected end of file"

Hello all, I am running a script to generate a report and mail it to an email address. When I am trying to validate whether the file is a 0 kb file, I am getting the below error. Error: "Syntax error; unexpected end of file" Any suggestions please? Code: #!/bin/sh .... (1 Reply)
Discussion started by: Pradeep_Raj
1 Replies