[mpich-devel] Should MPI_{Comm|Win|File}_Set_info(..., MPI_INFO_NULL) fail ?

Lisandro Dalcin dalcinl at gmail.com
Wed Apr 9 04:51:00 CDT 2014


Right now, it success for Comm but fails for Win and File. IMHO, all
should success, this should be a way for users to ask the
implementation "please, reset the info hints to whatever the defaults
are".

If you decide they should fail, then the Comm case needs a fix to
generate an error.

$ mpicc comm_set_info.c
$ ./a.out


$ mpicc win_set_info.c
$ ./a.out
Fatal error in MPI_Win_set_info: Invalid argument, error stack:
MPI_Win_set_info(126): MPI_Win_set_info(win=win=0xa0000000,
info=MPI_INFO_NULL) failed
MPI_Win_set_info(82).: Null MPI_Info


$ mpicc file_set_info.c
$ ./a.out
Fatal error in PMPI_Info_dup: Invalid argument, error stack:
PMPI_Info_dup(149): MPI_Info_dup(MPI_INFO_NULL, newinfo=0x7fff58b899c4) failed
PMPI_Info_dup(108): Null MPI_Info


PS: Perhaps you have an easy fix for the error message (PMPI -> MPI)
in the last one?

-- 
Lisandro Dalcin
---------------
CIMEC (UNL/CONICET)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1016)
Tel/Fax: +54-342-4511169
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comm_set_info.c
Type: text/x-csrc
Size: 207 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/devel/attachments/20140409/f17622be/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file_set_info.c
Type: text/x-csrc
Size: 313 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/devel/attachments/20140409/f17622be/attachment-0001.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win_set_info.c
Type: text/x-csrc
Size: 231 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/devel/attachments/20140409/f17622be/attachment-0002.c>


More information about the devel mailing list