[mpich-discuss] MPI-IO error codes
Wei-keng Liao
wkliao at ece.northwestern.edu
Fri May 11 00:00:35 CDT 2012
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
More information about the mpich-discuss
mailing list