[RegCNET] compiling with mpif90 or ifort -openmp
bixq
bixq at ictp.it
Tue Feb 23 15:32:22 CET 2010
On Tue, 23 Feb 2010, IMRAN NADEEM wrote:
> Dear All,
>
> On one of our shared memory machines, openmpi is compiled with
> gfortran. As ifort is also installed on the machine, so I requested system
> administrator
> to build and install openmpi with ifort. I got reply that I can use the
> same openmpi installation with ifort by using -openmpi flag with ifort like
>
> ifort -openmpi
>
> I tried the by replacing "ifort" with ifort "-openmpi" in Makefile_IFC8 in
> Main Directory. Compliation was OK but got lot of errors at linking stage
> like:
>
> bdyin.o: In function `bdyin_':
> bdyin.f:(.text+0x47c): undefined reference to `mpi_abort_'
> bdyin.f:(.text+0x608): undefined reference to `mpi_abort_'
> bdyin.f:(.text+0xf70): undefined reference to `mpi_bcast_'
> bdyin.f:(.text+0xfb2): undefined reference to `mpi_scatter_'
> bdyin.f:(.text+0x1431): undefined reference to `mpi_sendrecv_'
If mpi_sendrecv is not found, I guess the installed package is not
compatible. I think you can try use gfortran + this_openmpi, or
ifort + reinstalled_openmpi.
More information about the RegCNET
mailing list