unreceived messages / MPI_Finalize

Joachim Worringen joachim at ccrl-nece.de
Tue Jan 27 04:54:08 CST 2004


Jianwei Li:
> However, with the MPI_Finalize() fixed, I didn't get any error indicating
> unreceived messages with MPICH implementation. Actually I didn't observe
> any chance for a message to hang around, since we don't use any
> non-blocking MPI send/recv in our parallel-netCDF implementation. Indeed,
> MPI communication is only involved in limited MPI calls in our code:
> MPI_Init/MPI_Finalize, MPI_Bcast, MPI_Barrier, MPI_Allreduce, and a number
> of MPI_IO functions (currently, we don't use any non-blocking I/O in our
> implementation).

I think I found the problem: if ncmpi_open() fails because the file that was 
to be opened is not a netcdf-file, MPI_Close() is not called for this file. 
As this leads to resource wastage, it should probably be fixed.

For nc_test/nf_test, this means that one file is still open when the 
application exits. 

 Joachim

-- 
Joachim Worringen - NEC C&C research lab St.Augustin
fon +49-2241-9252.20 - fax .99 - http://www.ccrl-nece.de




More information about the parallel-netcdf mailing list