Subject: Re: [OMPI docs] How to compile OpenMPI applications?
From: manday_at_[hidden]
Date: 2013-08-24 13:42:56


I've frankly got no idea what you're talking about or whom you're
adressing for that matter. There is no student with any assignment and
neither are there any m4 files anywhere in the openmpi installation (at
least on Gentoo).

I'm simply a software developer trying to "properly" compile my OpenMPI
software like I would compile any other program (that is, without
auxilliary software). In more practical regard, I'd prefer that the
compilation of this program integrate well with CMake and the normal
compile process, in which additional tools such as mpicc are uncalled
for.

I hope this clears things up a little.

On Sat, Aug 24, 2013 at 09:50:49AM -0700, Ralph Castain wrote:
> 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
>
> _______________________________________________
> docs mailing list
> docs_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/docs