compiler_vasp

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
compiler_vasp [2016/02/02 15:27] – admincompiler_vasp [2017/11/03 19:23] (Version actuelle) – supprimée admin
Ligne 1: Ligne 1:
-====== Compile VASP ====== 
- 
- 
-<code bash> 
-$ tar –xvzf vasp.tgz vasp.lib.tgz 
-</code> 
- 
-<code bash> 
-$ module load mpi/openmpi/icc/1.7.5 
-</code> 
-  
-**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. 
- 
-<code bash> 
- 
-FC=mpif90 
-</code> 
- 
-run 
-<code bash> 
-$ make –f makefile.linux_ifc_P4 
-</code> 
- 
-**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 
- 
-<code bash> 
-FC= mpifort 
-.. 
-.. 
-CPP    = $(CPP_) -DMPI  -DHOST=\"LinuxIFC\" -DIFC \ 
- 
-      -DCACHE_SIZE=32000 -DPGF90 -Davoidalloc -DNGZhalf \ 
- 
-      -DMPI_BLOCK=64000 -Duse_collective -DscaLAPACK  -DMKL_ILP64 
-</code> 
- 
-Change the FORTRAN flags section as shown here. 
- 
-<code bash> 
-FFLAGS = -FR -names lowercase -assume byterecl -I$(MKLROOT)/include/fftw 
-........ 
-... 
-OFLAG=-O3  -axAVX 
-</code> 
- 
-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 
-<code bash> 
- 
-BLAS= -mkl=cluster 
- 
-LAPACK=  
-</code> 
-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. 
- 
-<code bash> 
- 
-#FFT3D = fftdfurth.o fftdlib.o 
-FFT3D= fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o  
-INCS = -I$(MKLROOT)/include/fftw 
- 
-SCA= 
-</code> 
- 
-Run the following command to build VASP. 
- 
-<code bash> 
-$make –f makefile.linux_ifc_P4 
-</code> 
  
  • compiler_vasp.1454426855.txt.gz
  • Dernière modification : 2016/02/02 15:27
  • de admin