Re: [mpich-discuss] error class MPI_ERR_NO_SUCH_FILE thrown by MPI_File_delete
On 04/05/2014 02:48 PM, Wei-keng Liao wrote:
In MPI-2 standard has the sentence below for MPI_File_delete. "If the file does not exist, MPI_FILE_DELETE raises an error in the class MPI_ERR_NO_SUCH_FILE."
this is now ticket http://trac.mpich.org/projects/mpich/ticket/2075. I think I can fix this today. ==rob
But in src/mpi/romio/adio/common/ad_delete.c, the return code of unlink() is not checked for this error (only MPI_ERR_IO class is thrown.) May I suggest to add a check, so the MPI_ERR_NO_SUCH_FILE class can reported.
19 err = unlink(filename); if (err == ENOENT) { *error_code = MPIO_Err_create_code(MPI_SUCCESS, MPIR_ERR_RECOVERABLE, myname, __LINE__, MPI_ERR_NO_SUCH_FILE, "**io", "**io %s", strerror(errno)); return; } else if (err == -1) { ...
-- Rob Latham Mathematics and Computer Science Division Argonne National Lab, IL USA
participants (1)
-
Rob Latham