[Hdf-forum] setting the default error handler to exit

Mark Howison mark.howison at gmail.com
Mon Aug 31 17:57:57 EDT 2009


Hi Quincey,

Can I do something as simple as this?

herr_t
hdf5_exit_on_error (void *unused)
{
    H5Eprint(stderr);
    exit(EXIT_FAILURE);
}

Will that still print the normal HDF5 error stack and then exit right after?

Thanks
Mark


On Mon, Aug 31, 2009 at 11:18 AM, Quincey Koziol<koziol at hdfgroup.org> wrote:
> Hi Mark,
>
> On Aug 31, 2009, at 11:12 AM, Mark Howison wrote:
>
>> Hi,
>>
>> Right now, if I run an MPI job and an HDF5 error occurs on a subset of
>> the procs, HDF5 will hang and eat up all of my allotted walltime.
>> Instead, I'd like the program to abort as soon as one proc reports any
>> HDF5 error. Do I need to write my own error handler to accomplish
>> this, or is there a way that the default error handler can handle
>> errors in this way?
>
>        I think you'll have to write your own error handler - the default
> handler can't do this currently.
>
>        Quincey
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum at hdfgroup.org
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>



More information about the Hdf-forum mailing list