Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] mpirun error with " The MPI_Comm_f2c() function was called before MPI_INIT was invoked."
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2012-05-15 15:57:26

More specifically -- are you calling any MPI function before calling MPI_Init? (particularly from Fortran)

I.e., you may be seeing a side-effect of calling a fortran MPI function before calling MPI_Init.

On May 13, 2012, at 9:53 AM, Ralph Castain wrote:

> I believe the error message is pretty clear, actually - your program needs to call MPI_INIT -before- it calls any MPI function.
> On May 13, 2012, at 6:37 AM, Dongshan Wei wrote:
>> Hi All,
>> I encountered a question about openmpi running. I have compiled
>> successfully a paralle VASP program with openmpi 1.4.2. But when I run
>> the compiled program with mpirun, I got the following information at
>> very beginning:
>> *** The MPI_Comm_f2c() function was called before MPI_INIT was invoked.
>> *** This is disallowed by the MPI standard.
>> *** Your MPI job will now abort.
>> I believe this error will not related to the VASP program, but only to
>> openmpi. But I don't how to handle. Does anybody give some solution?
>> Thanks in advance!
>> Dongshan
>> --
>> ---------------------------------------------------------
>> Dongshan Wei, Dr.
>> Chongqing Institute of Green and Intelligent Technology, CAS
>> 85 Jinyu Ave, Yubei Area, Chongqing 401120, China
>> Email: dswei_at_[hidden]
>> Phone: (+86) 23-63063762
>> ---------------------------------------------------------
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
> _______________________________________________
> users mailing list
> users_at_[hidden]

Jeff Squyres
For corporate legal information go to: