OpenMPI and PGI compilers

I’m having an issue compiling OpenMPI with the PGI compilers. The compilation of OpenMPI appears to proceed just fine. However, when I try to use mpif90 to build another program I get this following error:

Unfortunately, this installation of Open MPI was not compiled with
Fortran 90 support. As such, the mpif90 compiler is non-functional.

I’ve used the following configuration line to compile OpenMPI on a Redhat 3.5WS 64 bit system with Opteron processors:

./configure --enable-static CC=pgcc CXX=pgCC FC=pgf77 F90=pgf90 --prefix=/usr/local/openmpi --with-tm=/var/spool/torque

I want to be able to statically compile some codes, this is the reason for the --enable-static flag.

Hopefully this is an easy fix…

Thanks!

Hi,

Can you try with F77=pgf77 and FC=pgf90 ?

Hongyon