[Developers] MPI_Finalize
Erik Schnetter
schnetter at cct.lsu.edu
Tue Oct 2 12:32:01 CDT 2007
No, that's not possible. MPI_Init has to be called before command
line arguments are passed, which has to happen before the parameter
file is read, which has to happen before the driver is known.
-erik
On Oct 2, 2007, at 12:09:32, Jian Tao wrote:
> Just curious, could MPI_Init be pushed in the driver instead ?
>
> Regards,
> Jian
>
> Erik Schnetter wrote:
>> Currently, the flesh calls MPI_Init, but the driver is supposed to
>> call
>> MPI_Finalize. This happens presumably in the terminate bin as
>> Driver_Terminate. According to the MPI standard, no externally
>> visible
>> operations may be performed after that, so that the driver may as
>> well
>> call exit at the same time. If not, strange errors can happen, as
>> reported today elsewhere by Luca Baiotti.
>>
>> I propose to have the flesh call MPI_Finalize, to make things
>> symmetric
>> to MPI_Init. It would do so very late in CCTKi_ShutdownCactus after
>> printing "Done.". This means that thorns could continue to schedule
>> actions in the terminate bin after Driver_Terminate, and in the
>> shutdown
>> bin.
>>
>> I attach a diff. Of course, PUGH and Carpet would also need to be
>> changed, so that they don't call MPI_Finalize any more.
>>
>> -erik
>>
>> --Erik Schnetter <schnetter at cct.lsu.edu>
>>
>> My email is as private as my paper mail. I therefore support
>> encrypting
>> and signing email messages. Get my PGP key from www.keyserver.net.
>>
>>
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> Developers mailing list
>> Developers at cactuscode.org
>> http://www.cactuscode.org/mailman/listinfo/developers
>
> _______________________________________________
> Developers mailing list
> Developers at cactuscode.org
> http://www.cactuscode.org/mailman/listinfo/developers
>
--
Erik Schnetter <schnetter at cct.lsu.edu>
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from www.keyserver.net.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://www.cactuscode.org/pipermail/developers/attachments/20071002/1be29e08/attachment.bin
More information about the Developers
mailing list