[Pw_forum] openmpi 1.3.3

Carlo Nervi carlo.nervi at unito.it
Mon Oct 5 16:04:52 CEST 2009


Hi,
sorry to bother again.
I recompiled OpenMPI with the suggested options, but I still have 
problems. I think I have something wrong in my make.sys file.
First I was trying to use fftw3xf_intel libs, but ... are they 
incompatible with MPI? In a previous forum post I read that user were 
unable to use Intel FFTW3 + OpenMPI, so i switched to the internal FFTW.

Paolo, thank you for the message. I know that OpenMPI and OpenMP are 
different, and after your suggestion I tried to recompile all (after a 
make clean) using only OpenMPI and do not mix them:

./configure CC=icc F77=ifort F90=ifort  FC=ifort CPP=icpc FFLAGS=-xHost 
FCFLAGS=-xHost CFLAGS=-xHost CPPFLAGS=-xHost

(the -xHost tell to Intel compiler to optimize the code for the current 
CPU), and I got the following part of make.sys:

DFLAGS         =  -D__INTEL -D__FFTW -D__MPI -D__PARA

IFLAGS         = -I../include

MOD_FLAG      = -I

MPIF90         = mpif90
#F90           = ifort
CC             = icc
F77            = ifort
CPP            = cpp
CPPFLAGS       = -P -traditional $(DFLAGS) $(IFLAGS)

CFLAGS         = -O3 -xHost $(DFLAGS) $(IFLAGS)
F90FLAGS       = $(FFLAGS) -nomodule -fpp $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
FFLAGS         = -O2 -xHost -assume byterecl

FFLAGS_NOOPT   = -O0 -assume byterecl -xHost

LD             = mpif90
LDFLAGS        = -static-intel -openmp
LD_LIBS        =

BLAS_LIBS      =  -lmkl_em64t
FLIB_TARGETS   = all

LAPACK_LIBS    =   -lmkl_em64t
SCALAPACK_LIBS =


The -openmp (and -parallel ?) direction to ifort should be used or not? 
As far as i understood only the -openmp should be passed to the linker.
And only in the case I'd like to use OpenMP I should use the -openmp 
directive for ifort compiler. Is it?

I tryed also to use "-lmkl_intel_lp64 -lmkl_sequential -lmkl_core" 
instead of "-lmkl_em64t": no success...

Thank you,
	Carlo
-- 
------------------------------------------------------
Carlo Nervi carlo.nervi at unito.it Tel:+39 011 6707507/8
Fax: +39 011 6707855   -   Dipartimento di Chimica IFM
via P. Giuria 7, 10125 Torino, Italy
http://lem.ch.unito.it/



More information about the users mailing list