Hi every body !
Recently I am trying to compile the smp version of exciting executable.
I use Intel Ifort 2011 with MKL on Suse Linux Enterprise Desktop 11 SP2 .
I have also seen the previous posts about the problems of parallel compilation but I couldn't figure out why mine isn't working properly !!!
herec is my make.inc file :
F90=ifort
F90_OPTS = -O3 -ip -unroll -scalar_rep
CPP_ON_OPT = -cpp -DXS -DISO -DTETRA -DLIBXC
F77=$(F90)
F77_OPTS = -O3
LIB_ARP =libarpack.a
export USE_SYS_LAPACK=true
LIB_LPK = -mkl=sequential
LIB_FFT = fftlib.a
LIB_BZINT=libbzint.a
LIBS= $(LIB_ARP) $(LIB_LPK) $(LIB_FFT) $(LIB_BZINT)
F90_DEBUGOPTS=-g -debug all -implicitnone -warn unused -fp-stack-check -heap-arrays -ftrapuv -check pointers -check bounds
F77_DEBUGOPTS=-g -debug all -implicitnone -warn unused -fp-stack-check -heap-arrays -ftrapuv -check pointers -check bounds
#Ignore if you don't have MPI or smplibs
MPIF90=mpif90-ifort
MPIF90_OPTS=$(F90_OPTS) $(CPP_ON_OPT) -DMPI -DMPIRHO -DMPISEC
F77MT=$(F77)
F90MT=$(F90)
SMP_LIBS=$(LIB_ARP) -mkl=parallel $(LIB_FFT) $(LIB_BZINT)
SMPF90_OPTS=$(F90_OPTS)
SMPF77_OPTS=$(SMPF90_OPTS)
MPISMPF90_OPTS=$(SMPF90_OPTS) -DMPI -DMPIRHO -DMPISECBUILDMPI=false
MPIF90MT=$(MPIF90)
BUILDMPI=true
BUILDSMP=true
BUILDMPI=true
BUILDSMP=true
BUILDMPI=false
BUILDSMP=true
The compilation is completed without errors and the executables "excitingser" and "excitingsmp" are created.
"excitingser" works correctly but "excitingspm" can not see the cores (I'm using intel core i7 ivy bridge-Quad core) and run on 1 core.
I don't know is there any other configuration that I have forgotten or missed or what something else should I do ? I also export OMP_NUM_THREADS= 4 or 8 before running excitingsmp but the problem is still exist and the executable run only on a single core.
I mean there must has been something that I ignored in make.inc or intel MKL configuration or somewhere else ! !