Dear CP2K users,<br>
I am compiling the parallel version of cp2k (2.5.1) using mkl together 
with an ifort (13.1.1) wrapper (mpif90) built from openmpi.<br>
I installed the serial version but when it comes to the parallel version in my intel machine (24CPU):<br>
<br>
MKL_LIB=/opt/intel/composer_xe<div id=":10k" class="a3s"><wbr>_2013.3.163/mkl<br>
CC       = mpicc<br>
CPP      =<br>
FC       = mpif90   -openmp  -I$(MKL_LIB)/include<br>
LD       = mpif90   -openmp  -I$(MKL_LIB)/include<br>
AR       = ar -r<br>
LIBXC_LIB = /opt/etsf<br>
LIBXC_INC= /opt/etsf/include<br>
LIBINT_DIR =/usr/local/libint/1.1.5-stabl<wbr>e<br>
INTEL_MKL=$(MKL_LIB)/lib/intel<wbr>64<br>
INTEL_INC=$(MKL_LIB)/include<br>
LIBINT_INC=/usr/local/libint/1<wbr>.1.5-stable/include/libint<br>
FFTW_INC=$(MKL_LIB)/include/ff<wbr>tw<br>
DFLAGS   = -D__INTEL -D__FFTSG -D__FFTW3 -DFFT_MKL -D__parallel -D__BLACS -D__SCALAPACK -D__LIBXC2<br>
CPPFLAGS =<br>
FCFLAGS  = $(DFLAGS) -I$(INTEL_INC) -I$(FFTW_INC) -I$(LIBINT_INC) 
-I$(LIBXC_INC)  -no-ipo -O3 -xHost -heap-arrays 64 -funroll-loops -fpp 
-free<br>
FCFLAGS2 = $(DFLAGS) -I$(INTEL_INC) -I$(FFTW_INC) -I$(LIBINT_INC) -I$(LIBXC_INC)  -no-ipo -O1 -xHost -heap-arrays 64 -fpp -free<br>
LDFLAGS  = $(FCFLAGS) -static-intel<br>
LIBS=-L$(MKL_LIB)/interfaces/f<wbr>ftw3xf -lfftw3xf_intel\<br>
-L$(MKL_LIB)/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 
-lmkl_sequential -lmkl_core -lmkl_intel_thread -lmkl_blacs_openmpi_lp64 
-lpthread -lm\<br>
         $(LIBINT_DIR)/lib/libderiv.a $(LIBINT_DIR)/lib/libint.a -lstdc++ \<br> $(LIBXC_LIB)/lib/libxc.a<br>
graphcon.o: graphcon.F<br>
        $(FC) -c $(FCFLAGS2) $<<br>
<br>
external_potential_types.o: external_potential_types.F<br>
        $(FC) -c $(FCFLAGS2) $<<br>
<br>
qs_linres_current.o: qs_linres_current.F<br>
        $(FC) -c $(FCFLAGS2) $<<br>
<br>
qs_dispersion_nonloc.o: qs_dispersion_nonloc.F<br>
        $(FC) -c $(FCFLAGS2) $<<br>
<br>
qs_vxc_atom.o: qs_vxc_atom.F<br>
        $(FC) -c $(FCFLAGS2) $<<br>
<br>
et_coupling.o: et_coupling.F<br>
        $(FC) -c $(FCFLAGS2) $<<br>
<br>
cp_lbfgs_optimizer_gopt.o: cp_lbfgs_optimizer_gopt.F<br>
        $(FC) -c $(FCFLAGS2) $<<br>
<br>
when I make make ARCH=Linux-x86-64-intel VERSION=popt<br>
<br>
I get:<br>make[1]: Entering directory `/home/sa1170/cp2k-par/obj/Linux-x86-64-intel/popt'<br><div id=":10k" class="a3s">
mpif90   -openmp  -I/opt/intel/composer_xe_2013.<wbr>3.163/mkl/include
 -D__INTEL -D__FFTSG -D__FFTW3 -DFFT_MKL -D__parallel -D__BLACS 
-D__SCALAPACK -D__LIBXC2 -I/opt/intel/composer_xe_2013.<wbr>3.163/mkl/include -I/opt/intel/composer_xe_2013.<wbr>3.163/mkl/include/fftw -I/usr/local/libint/1.1.5-stab<wbr>le/include/libint
 -I/opt/etsf/include -no-ipo -O3 -xHost -heap-arrays 64 -funroll-loops 
-fpp -free -D__COMPILE_ARCH="\"Linux-x86-<wbr>64-intel\"" -D__COMPILE_DATE="\"Fri Aug 15 17:20:44 BST 2014\"" -D__COMPILE_HOST="\"sa1170-vir<wbr>tual-machine\"" -D__COMPILE_REVISION="\"svn:13<wbr>632\"" -static-intel  -o /home/sa1170/cp2k-par/makefile<wbr>s/../exe/Linux-x86-64-intel/<wbr>cp2k.popt cp2k.o /home/sa1170/cp2k-par/makefile<wbr>s/../lib/Linux-x86-64-intel/<wbr>popt/libcp2k_lib.a /home/sa1170/cp2k-par/makefile<wbr>s/../lib/Linux-x86-64-intel/<wbr>popt/libcp2k_dbcsr_lib.a /home/sa1170/cp2k-par/makefile<wbr>s/../lib/Linux-x86-64-intel/<wbr>popt/libcp2k_fft_lib.a /home/sa1170/cp2k-par/makefile<wbr>s/../lib/Linux-x86-64-intel/<wbr>popt/libcp2k_base_lib.a /home/sa1170/cp2k-par/makefile<wbr>s/../lib/Linux-x86-64-intel/<wbr>popt/libcp2k_ma_lib.a<br>
/home/sa1170/cp2k-par/makefile<wbr>s/../lib/Linux-x86-64-intel/<wbr>popt/libcp2k_lib.a(library_<wbr>tests.o): In function `library_tests_mp_matmul_test_<wbr>..0':<br>
/home/sa1170/cp2k-par/makefile<wbr>s/../src/library_tests.F:(.<wbr>text+0x219f): undefined reference to `dgemm_'<br>
<br>
And whatever the change I make in the Makefile concerning LIBS I have 
the same error!!!. So I don't really see where my problem is...but the 
LIBS path may not be taken correctly!!!<br>
Many many thanks,<br>Samir<br></div><br></div>