[mpich-discuss] MPI-IO error codes
William Gropp
wgropp at illinois.edu
Fri May 11 07:30:56 CDT 2012
You are confusing error codes with error classes. MPI routines return an error code; the MPI_ERR_xxx values are errors classes and can be obtained from an error code with the routine MPI_Error_class . In MPICH2, the error code encodes additional data about the failure; the value from MPI_Error_string provides a more detained error text.
Bill
William Gropp
Director, Parallel Computing Institute
Deputy Director for Research
Institute for Advanced Computing Applications and Technologies
Paul and Cynthia Saylor Professor of Computer Science
University of Illinois Urbana-Champaign
On May 11, 2012, at 12:00 AM, Wei-keng Liao wrote:
> When opening an non-existing file for read-write, MPI_File_open is expected
> to return the error code MPI_ERR_NO_SUCH_FILE, which is defined as 37 in mpi.h.
>
> But I am getting a strange number, 604547877.
> Here is the code I tried. (using mpich2-1.4.1p1)
>
> err = MPI_File_open(MPI_COMM_WORLD, "testfile", MPI_MODE_RDWR,
> MPI_INFO_NULL, &fh);
> printf("err=%d MPI_ERR_NO_SUCH_FILE=%d\n",err,MPI_ERR_NO_SUCH_FILE);
>
> stdout:
> err=604547877 MPI_ERR_NO_SUCH_FILE=37
>
> I found similar problems for other error codes.
>
> Wei-keng
>
>
> _______________________________________________
> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list