[mpich-devel] Two issues with MPI_File error handling

Rob Latham robl at mcs.anl.gov
Fri May 8 08:54:47 CDT 2015



On 05/08/2015 04:04 AM, Lisandro Dalcin wrote:
> On 7 May 2015 at 22:00, Rob Latham <robl at mcs.anl.gov> wrote:
>>
>>
>> Thanks for reporting these two issues.  These two patches (attached) address
>> your test case, but it's a part of the code I don't play in often, so I'm
>> going to need a review on them before committing:
>>
>
> Rob, I think you patch 2 is not right. It will endup calling the error
> handler set in COMM_WORLD. So if you set the FATAL errhandler in a
> file, but the RETURNS in comm world, then things will not work as
> expected.
>
> I think a better approach would be to somehow call
>
> handleFatalError(NULL, "MPI_File_call_errhandler", errorcode);
>
> in errutil.c, but that would require some code refactoring to access
> that function.

Thought I had found a shortcut to that function, but I guess not.  Well, 
I'll have to bite the bullet and write a little accessor function for 
files like there is for comm and win.

==rob

>
>

-- 
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA


More information about the devel mailing list