mpi in conducti
Posted: Thu Feb 18, 2010 4:09 pm
This is to follow a thread initiated at the abinit e-mail list.
My problem is when running linear_optics_paw in serial but compiling with mpi.
I get an error message ( I pasted the previous discussion below).
According to Matteo's suggestion, I am to add a call to initmpi_seq at the beggining of the
program and to xmpi_end at the end.
The main program is "conducti". I just want to know if all of its children are just coded for serial runs:
conducti_nc
conducti_paw
linear_optics_paw
conducti_paw
If so, I will proceed adding these calls to the program "conducti"
What do you think?
> Hi,
>
> Tonatiuh Rangel <Tonatiuh.Rangel@uclouvain.be> ha escrito:
>
>> I am having an error with optics paw:
>> [...]
>>
>> But when running conducti the code stops with the following error:
>> *** An error occurred in MPI_Comm_f2c
>> *** before MPI was initialized
>> *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort)
>>
>> Can anyone help me with this?
>
> I can just tell you what's wrong: conducti is calling routines that
> depend on MPI, but doesn't initialize MPI itself.
I would add a call to initmpi_seq in order to initialize mpi_enreg
before calling the different conducti routines.
Besides one should call xmpi_end before the end of the main program.
>
> A proper call to mpi_init() has to be added at an appropriate place.
>
> Best regards,
>
> Yann.
>
> --
> Yann Pouillon European Theoretical Spectroscopy Facility
> (ETSF)
> Tel: (+34) 943 01 83 94 Centro Joxe Mari Korta, Avenida de Tolosa, 72
> Fax: (+34) 943 01 83 90 20018 Donostia-San Sebastián (Gipuzkoa)
> Web: http://www.etsf.es/ España
My problem is when running linear_optics_paw in serial but compiling with mpi.
I get an error message ( I pasted the previous discussion below).
According to Matteo's suggestion, I am to add a call to initmpi_seq at the beggining of the
program and to xmpi_end at the end.
The main program is "conducti". I just want to know if all of its children are just coded for serial runs:
conducti_nc
conducti_paw
linear_optics_paw
conducti_paw
If so, I will proceed adding these calls to the program "conducti"
What do you think?
> Hi,
>
> Tonatiuh Rangel <Tonatiuh.Rangel@uclouvain.be> ha escrito:
>
>> I am having an error with optics paw:
>> [...]
>>
>> But when running conducti the code stops with the following error:
>> *** An error occurred in MPI_Comm_f2c
>> *** before MPI was initialized
>> *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort)
>>
>> Can anyone help me with this?
>
> I can just tell you what's wrong: conducti is calling routines that
> depend on MPI, but doesn't initialize MPI itself.
I would add a call to initmpi_seq in order to initialize mpi_enreg
before calling the different conducti routines.
Besides one should call xmpi_end before the end of the main program.
>
> A proper call to mpi_init() has to be added at an appropriate place.
>
> Best regards,
>
> Yann.
>
> --
> Yann Pouillon European Theoretical Spectroscopy Facility
> (ETSF)
> Tel: (+34) 943 01 83 94 Centro Joxe Mari Korta, Avenida de Tolosa, 72
> Fax: (+34) 943 01 83 90 20018 Donostia-San Sebastián (Gipuzkoa)
> Web: http://www.etsf.es/ España