Ceci est une ancienne révision du document !
Compile VASP
$ tar –xvzf vasp.tgz vasp.lib.tgz
$ module load mpi/openmpi/icc/1.7.5
1. Build libdmy.a
Change directory to vasp.x.x.lib
Modify the makefile.linux_ifc_P4 Makefile to point to the correct Intel FORTRAN compiler.
FC=mpif90
run
$ make –f makefile.linux_ifc_P4
2.Build VASP
Change directory to vasp.x.x
Edit the makefile.linux_ifc_P4 to link with Intel® MKL libraries and change the Fotran compiler
Under FORTRAN and C++ compiler and linker part of the makefile
FC= mpifort .. .. CPP = $(CPP_) -DMPI -DHOST=\"LinuxIFC\" -DIFC \ -DCACHE_SIZE=32000 -DPGF90 -Davoidalloc -DNGZhalf \ -DMPI_BLOCK=64000 -Duse_collective -DscaLAPACK -DMKL_ILP64
Change the FORTRAN flags section as shown here.
FFLAGS = -FR -names lowercase -assume byterecl -I$(MKLROOT)/include/fftw ........ ... OFLAG=-O3 -axAVX
Point to use Intel MKL libraries by modifying the MKL section as shown below: -mkl=cluster is an Intel compiler flag that to include Intel MKL libraries, that will link with Intel MKL BLAS, LAPACK, FFT, ScaLAPACK functions that are used in VASP.
N.B : MKL is load with mpi/openmpi module
BLAS= -mkl=cluster LAPACK=
Comment out the existing FFT3D line, FFTW wrappers are integrated with the Intel MKL 10.2 onwards, and you do not need to specify the wrapper libs in the FFT3D line, and will be taken care of by -mkl=cluster flag mentioned above.
#FFT3D = fftdfurth.o fftdlib.o FFT3D= fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o INCS = -I$(MKLROOT)/include/fftw SCA=
Run the following command to build VASP.
$make –f makefile.linux_ifc_P4