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.

From: Brian Barrett (bbarrett_at_[hidden])
Date: 2007-06-05 15:46:58


Hi Rich -

All the releases back to the 0.9 pre-release included a #define of
OPEN_MPI to 1 in mpi.h, so that would be a good way to find out if
you are using Open MPI or not.

Hope this helps,

Brian

On Jun 5, 2007, at 1:36 PM, Lie-Quan Lee wrote:

> I was thinking of this way. Is macro OPEN_MPI always defined in the
> openmpi release? I search through FAQ and other docs and cannot
> confirm it. Or there is another macro which is unique to openmpi?
>
> --Rich
>
> On 6/5/07, Anthony Chan <chan_at_[hidden]> wrote:
> Never tried this myself, but this test could work
>
> AC_COMPILE_IFELSE( [
> AC_LANG_PROGRAM( [
> #include "mpi.h"
> ], [
> #if defined( OPEN_MPI )
> return 0;
> #else
> #error
> #endif
> ] )
> ], [
> mpi_is_openmpi=yes
> ], [
> mpi_is_openmpi=no
> ] )
>
> A.Chan
>
>
> On Tue, 5 Jun 2007, Lie-Quan Lee wrote:
>
> > I am a project written in C/C++ but used 3rd-party libraries
> written in
> > Fortran. In the linking stage, I use mpic++ andl need to put -
> lmpi_f90
> > -lmpi_f77 into the link flags.
> > I am wondering if anyone has already had a way to identify
> openmpi in
> > configure script using autoconf macro. By identifying openmpi in the
> > configure, I will be able to handle those libraries. Thanks.
> >
> > --
> > Best regards,
> > Rich Lee
> > Stanford Linear Accelerator Center
> >
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
>
> --
> Best regards,
> Rich
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users