[mpich-discuss] using MPICH_FAILED_PROCESSES
Ma, Zhaoming
zhaoming.ma at citi.com
Tue Nov 27 15:27:58 CST 2012
I am trying to use the following to catch failed processes,
MPI::COMM_WORLD.Get_attr(MPICH_ATTR_FAILED_PROCESSES, void*)
I am using MPICH2 1.4 and g++. Someone posted a C program that does this successfully. The link is http://hi.baidu.com/ejoywx/item/74233ccb9dd20815515058ae. However, I am having trouble making my C++ testing program (attached) working. The code compiled ok but produces the following runtime error,
terminate called after throwing an instance of 'MPI::Exception'
APPLICATION TERMINATED WITH THE EXIT STRING: Aborted (signal 6)
If I comment out the line "MPI::COMM_WORLD.Get_attr(MPICH_ATTR_FAILED_PROCESSES, void*)" or put it in a try and catch block, the test program runs fine.
Thank you for your help.
Zhaoming
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MPI_test.cpp.txt
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20121127/310eec9a/attachment.txt>
More information about the discuss
mailing list