Hi all,

I'm using OpenMPI 1.2.2 with Intel compilers (icc, ifort)
But I found mpicc and mpif90 cannot work with Intel -fast optimisation.

------------------------------------------------------------------------
[ywan@frontend01 hello]$ mpif90 -fast -o hello -i-dynamic hello.f90

IPO: performing single-file optimizations
IPO: generating object file /tmp/ipo_ifortTdJGQr.o
ld: cannot find -lmpi_f90
------------------------------------------------------------------------

The above command can be expanded as:
------------------------------------------------------------------------
[ywan@frontend01 hello]$ mpif90 -fast -o hello -i-dynamic hello.f90 -show

ifort -I/usr/local/Cluster-Apps/openmpi/intel/64/1.2.2//include -pthread -I/usr/local/Cluster-Apps/openmpi/intel/64/1.2.2//lib -fast -o hello -i-dynamic hello.f90 -L/usr/local/Cluster-Apps/openmpi/intel/64/1.2.2//lib -lmpi_f90 -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lirc -lstdc++ -lnsl -lutil
-------------------------------------------------------------------------

mpif90 can find -lmpi_f90 if I remove -fast from above command.


Anyone knows the reseaon why OpenMPI not works with Intel -fast?



--Yuan


Yuan Wan
--
Unix Section
Information Services Infrastructure Division
University of Edinburgh

tel: 0131 650 4985
email: y...@ed.ac.uk

2032 Computing Services, JCMB
The King's Buildings,
Edinburgh, EH9 3JZ

Reply via email to