[mpich-discuss] detect which MPI is installed

Hegewald hegewald at irmb.tu-bs.de
Wed Oct 12 02:30:50 CDT 2011


On 11.10.2011, at 17:37, Anthony Chan wrote:

> 
> Not sure about mpiexec (but mpiexec should have implementation specific flags).

Indeed, this is why I have to tell which mpiexec I am dealing with (-:

> 
> One way to tell what MPI implementation (MPICH2 vs OpenMPI) is through
> the header files, e.g. mpicc.  OpenMPI and MPICH2 defines implementation
> specific macros in mpi.h, so the following program should work

Ah, this could at least tell mpich2 and openmpi apart. Thanks.

Cheers,
-- Jan Hegewald


More information about the mpich-discuss mailing list