Différences
Ci-dessous, les différences entre deux révisions de la page.
| 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] – admin | compiler_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 bash> | ||
| - | $ module load mpi/ | ||
| - | </ | ||
| - | |||
| - | **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 | ||
| - | </ | ||
| - | |||
| - | run | ||
| - | <code bash> | ||
| - | $ 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 | ||
| - | |||
| - | <code bash> | ||
| - | FC= mpifort | ||
| - | .. | ||
| - | .. | ||
| - | CPP = $(CPP_) -DMPI -DHOST=\" | ||
| - | |||
| - | | ||
| - | |||
| - | | ||
| - | </ | ||
| - | |||
| - | Change the FORTRAN flags section as shown here. | ||
| - | |||
| - | <code bash> | ||
| - | FFLAGS = -FR -names lowercase -assume byterecl -I$(MKLROOT)/ | ||
| - | ........ | ||
| - | ... | ||
| - | OFLAG=-O3 | ||
| - | </ | ||
| - | |||
| - | Point to use Intel MKL libraries by modifying the MKL section as shown below: | ||
| - | |||
| - | N.B : MKL is load with mpi/openmpi module | ||
| - | <code bash> | ||
| - | |||
| - | 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. | ||
| - | |||
| - | <code bash> | ||
| - | |||
| - | #FFT3D = fftdfurth.o fftdlib.o | ||
| - | FFT3D= fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o | ||
| - | INCS = -I$(MKLROOT)/ | ||
| - | |||
| - | SCA= | ||
| - | </ | ||
| - | |||
| - | Run the following command to build VASP. | ||
| - | |||
| - | <code bash> | ||
| - | $make –f makefile.linux_ifc_P4 | ||
| - | </ | ||