Open MPI logo

Docs Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Docs mailing list

Subject: Re: [OMPI docs] How to compile OpenMPI applications?
From: Ralph Castain (rhc_at_[hidden])
Date: 2013-08-24 12:50:49


We generally refrain from helping students with assignments as that somewhat violates the intent of the teacher, but we can certainly provide direction. Constructing your own version of mpicc would mean that you dig thru the various .m4 files in the config directory to see what compiler and linker flags are being set. The code base tests the local environment using the .m4 files to determine which are applicable.

Good luck with your assignment!

On Aug 24, 2013, at 9:44 AM, manday_at_[hidden] wrote:

> Basically, yes. But what are the "right librarlies" and the necessary
> header files? I would like to find documentation which does *not* assume
> a "black box" (mpicc) which does all the "magic".
>
> Of course, I could just look at the example output of mpicc --showme,
> but then I couldn't be sure that this is generally the right LD and CC
> flags - therefore I'm looking for a documentation which covers the
> compilation requirements generally.
>
>
> On Sat, Aug 24, 2013 at 11:13:31AM -0500, Leonardo Fialho wrote:
>> If I'm not wrong, you just have to link the right libraries and be sure the preprocessor will find the header files. Usually, the mpicc is a compiler wraper that does that for you. Check if actually it is not a script that you can just change the content to adapt it to your necessities.
>>
>> On Aug 24, 2013, at 10:02 AM, manday_at_[hidden] wrote:
>>
>>> Hello,
>>>
>>> without mpicc, documentation of the general requirements. mpicc --showme
>>> will just give an example, that's not what I meant when I referred to
>>> "documentation".
>>>
>>> Freely rephrased, I'm looking for documentation which would
>>> theoretically allow me to write a working mpicc myself (although that is
>>> obviously not my goal).
>>>
>>> Thank you.
>>>
>>>
>>> On Sat, Aug 24, 2013 at 07:34:07AM -0700, Ralph Castain wrote:
>>>> Just type "mpicc --showme" and it will tell you the cmd line
>>>>
>>>> On Aug 24, 2013, at 3:49 AM, manday_at_[hidden] wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> could you please provide me with documentation of how to compile OpenMPI
>>>>> C applications in general (without a does-it-for-you tool such as mpicc)?
>>>>>
>>>>> Thank you
>>>>> _______________________________________________
>>>>> docs mailing list
>>>>> docs_at_[hidden]
>>>>> http://www.open-mpi.org/mailman/listinfo.cgi/docs
>>>>
>>>> _______________________________________________
>>>> docs mailing list
>>>> docs_at_[hidden]
>>>> http://www.open-mpi.org/mailman/listinfo.cgi/docs
>>> _______________________________________________
>>> docs mailing list
>>> docs_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/docs
>> _______________________________________________
>> docs mailing list
>> docs_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/docs
> _______________________________________________
> docs mailing list
> docs_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/docs