±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 357  |  »Ø¸´: 2
¡¾½±Àø¡¿ ±¾Ìû±»ÆÀ¼Û1´Î£¬×÷ÕßµÆËþÊØÍûÕßÔö¼Ó½ð±Ò 0.5 ¸ö
µ±Ç°Ö÷ÌâÒѾ­´æµµ¡£

[×ÊÔ´] ¡¾·ÖÏí¡¿Building VASP with MKL

Building VASP

Build FFTW wrapper library for Intel® MKL
Change directory to /interfaces/fftw3xf.
Assuming default installation-- $cd /opt/intel/mkl/10.0.2.018/interfaces/fftw3xfBuild the fftw 3.x Fortran wrapper library for Intel® 64 (previously known as em64t) platform using the Intel compilers. $make libem64t compiler=intelThis will create the fftw wrapper library "libfftw3xf_intel.a" in lib/em64t directory of your Intel® MKL installation.



Build libdmy.a
Change directory to vasp.x.x.lib.
Run the following command from vasp.x.x.lib, using the Makefile for linux using the Intel compiler.
#make -f makefile.linux_ifc_P4After a successful compilation, libdmy.a will be built in the same directory.


Build VASP
Change directory to vasp.x.x.
Edit the makefile.linux_ifc_P4 to link with Intel® MKL libraries.
Go to the section where BLAS, LAPACK and FFT libraries are specified and change as below, assuming the default installation /opt/intel/mkl/10.0.2.018 for MKL 10.0 update 2.
BLAS=-L/opt/intel/mkl/10.0.2.018/lib/em64t -lmkl_intel_lp64 -lmkl_blacs_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread
LAPACK=-L/opt/intel/mkl/10.0.2.018/lib/em64t -lmkl_intel_lp64 -lmkl_blacs_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread
FFT3D= fftmpiw.o fftmpi_map.o fft3dlib.o /opt/intel/mkl/10.0.2.018/lib/em64t /libfftw3xf_intel.aModify Fortran compiler flags line to include fftw3.f from Intel® MKL include directory as below:
FFLAGS= -I/opt/intel/mkl/10.0.2.018/include/fftw -FR -lower_caseThis will eliminate compilation errors pertaining to "cannot open include file `fftw3.f' when Intel® MKL FFT is used rather than VASP's own FFTs.
To use Intel® MKL ScaLAPACK, modify additional options for CPP for parallel version adding -DscaLAPACK to the CPP line and specify Intel® MKL ScaLAPACK as below:
SCA=/opt/intel/mkl/10.0.2.018/lib/em64t/libmkl_scalapack_lp64.a /opt/intel/mkl/10.0.2.018/lib/em64t/libmkl_blacs_intelmpi_lp64.a
To use Intel® MPI specify Fortran compiler as FC=mpiifort.
Run the following command to build vasp:
$make -f makefile.linux_ifc_P4This will create the VASP executable in the current directory.


Step 5 - Running VASP
Run vasp by executing the following command with your workloads:
$mpirun -n 4 ./vasp

Appendix A - Performance Results

Below are VASP benchmark results for HG. VASP version is 4.6.28 on an Intel® Xeon 5400 series Harpertown machine.

Two Quad-core Xeon EM64T (harpertown) 2.83GHz CPUs
2 x 6M Cache
16G Bytes Memory
1333MHz FSB
OS:

RedHat Enterprise 4 U4
Libraries used:

Intel® MKL 9.1.023 (including BLAS, LAPACK & FFT which are be used in VASP)
Intel® MPI 3.1
Compiler to use:

Intel 10.1 C/C++ complier for EM64T
Intel 10.1 Fortran complier for EM64T
Running time (seconds)
Process Number Baseline program Tuned program with MKL
1 81.84 70.96
2 42.80 35.01
4 29.89 25.84
8 19.35 17.55



Appendix B - Known Issues and Limitations

When the Intel® MKL FFT is used instead of VASP¡¯s own implementation of FFT, it will give compilation errors similar to these:

fortcom: Error: fftw3d.f90, line 501: Cannot open include file 'fftw3.f'
include 'fftw3.f'
---------------^
fortcom: Error: fftw3d.f90, line 510: This name does not have a type, and must have an explicit type. [FFTW_FORWARD]
FFTW_FORWARD, FFTW_ESTIMATE)To eliminate the above errors, do one of the below mentioned workarounds.

Copy fftw3.f from /Intel® MKL include/fftw to the vasp.x.x directory.
$cp /include/fftw3.f /vasp.4.6OR

Modify makefile to include fftw3.f from Intel® MKL in the FFLAGS line:
FFLAGS= -I//include/fftw


ÄÚÈÝÀ´Ô´ÓÚhttp://software.intel.com/en-us/ ... g-intel-mkl-in-vasp

[ Last edited by mingdong on 2009-9-14 at 16:57 ]
»Ø¸´´ËÂ¥
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

superest

½ð³æ (СÓÐÃûÆø)


¡ï¡ï¡ï ÈýÐǼ¶,Ö§³Ö¹ÄÀø

Õâ¸öifort 10.1²»ÊÇÓдíÎóô£¿ÅÜbench Hg,½á¹û¶Ôô£¿
2Â¥2008-11-17 21:56:49
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

realac

Í­³æ (СÓÐÃûÆø)


hoho,ifort»¹ÊÇÓÃ9.1µÄ£¬10.1ºÃÏñ±àÒëvasp»¹ÊÇÓÐÎÊÌâ
3Â¥2008-11-18 07:30:45
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ µÆËþÊØÍûÕß µÄÖ÷Ìâ¸üÐÂ
¡î ÎÞÐǼ¶ ¡ï Ò»ÐǼ¶ ¡ï¡ï¡ï ÈýÐǼ¶ ¡ï¡ï¡ï¡ï¡ï ÎåÐǼ¶
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] ÉúÎïѧ308·ÖÇóµ÷¼Á£¨Ò»Ö¾Ô¸»ª¶«Ê¦´ó£© +5 ÏàÐűػá¹ââÍòÕ 2026-04-02 5/250 2026-04-03 15:06 by zrongyan
[¿¼ÑÐ] Çóµ÷¼Á£¬Ò»Ö¾Ô¸Ö£ÖÝ´óѧ²ÄÁÏÓ뻯¹¤×¨Ë¶£¬Ó¢¶þÊý¶þ342·Ö£¬ÇóÀÏʦÊÕÁô +12 v12abo 2026-04-02 13/650 2026-04-03 15:02 by buqi613
[¿¼ÑÐ] 085501Ò»Ö¾Ô¸Ì칤´ó£¬»úеר˶Çóµ÷¼Á£¬¿ç²ÄÁÏ +3 33ÉÏ 2026-04-03 3/150 2026-04-03 14:08 by 1753564080
[¿¼ÑÐ] 283Çóµ÷¼Á +3 jiouuu 2026-04-03 4/200 2026-04-03 13:28 by jiouuu
[¿¼ÑÐ] 306·Ö²ÄÁÏÓ뻯¹¤Çóµ÷¼Á +4 Àè°ÉÀ²À²ÄãºÜÓÐà 2026-04-03 4/200 2026-04-03 11:24 by wangjy2002
[¿¼ÑÐ] 311Çóµ÷¼ÁÒ»Ö¾Ô¸ºÏ·Ê¹¤Òµ´óѧ +15 Çï¶þÊ®¶þ 2026-03-30 15/750 2026-04-03 10:19 by linyelide
[¿¼ÑÐ] Ò»Ö¾Ô¸ÏÃÃÅ´óѧ²ÄÁϹ¤³Ìר˶354ÕÒµ÷¼Á£¡£¡£¡ +8 ±´ß±µ±µ 2026-03-30 8/400 2026-04-03 09:41 by hypershenger
[¿¼ÑÐ] 366Çóµ÷¼ÁÒ»Ö¾Ô¸¶«±±´óѧ +8 ÔËÆøÀ´µÃÈôÓÐËÆÎ 2026-04-02 8/400 2026-04-02 21:39 by dongzh2009
[¿¼ÑÐ] »·¾³¹¤³Ì297·ÖÇóµ÷¼ÁÒ»Ö¾Ô¸º¼¸ßÔº +15 GENJIOW 2026-03-31 16/800 2026-04-02 17:56 by cyh¡ª315
[¿¼ÑÐ] 348Çóµ÷¼Á +11 zzzzyk123 2026-04-01 11/550 2026-04-02 16:52 by Wang200018
[¿¼²©] ²ÄÁϹ¤³Ìרҵ˶ʿÉ격 +3 ÷ëÕýÓî 2026-03-30 3/150 2026-04-02 15:04 by greychen00
[¿¼ÑÐ] 311Çóµ÷¼Á +9 Ó¸ҵÄСÎâ 2026-04-02 9/450 2026-04-02 11:37 by Sammy2
[¿¼ÑÐ] 07ÉúÎïѧÇóµ÷¼Á һ־Ըͬ¼Ã´óѧ359·Ö +3 LAMC. 2026-03-30 3/150 2026-04-02 10:26 by 18828373951
[¿¼ÑÐ] 311Çóµ÷¼Á +16 zchqwer 2026-04-01 18/900 2026-04-02 10:15 by ²»³Ôô~µÄ؈
[¿¼ÑÐ] 303·Ö 0807ѧ˶Çóµ÷¼Á +3 TYC3632 2026-04-01 3/150 2026-04-01 19:24 by lwk2004
[¿¼ÑÐ] Ò»Ö¾Ô¸Äϲý´óѧ324Çóµ÷¼Á +7 hanamiko 2026-03-30 7/350 2026-04-01 13:22 by JourneyLucky
[¿¼ÑÐ] Ò»Ö¾Ô¸Î÷½»´ó080500²ÄÁÏѧ˶349 +6 jqx1258 2026-03-31 7/350 2026-03-31 21:08 by yuq
[¿¼ÑÐ] 353Çóµ÷¼Á +3 ½­ÉÏ·ã_26 2026-03-28 3/150 2026-03-31 15:53 by jp9609
[¿¼ÑÐ] 313Çóµ÷¼Á +6 Âô¸ö¹Ø×Ó°É 2026-03-31 6/300 2026-03-31 10:58 by Jaylen.
[¿¼ÑÐ] 356Çóµ÷¼Á +4 gysy?s?a 2026-03-28 4/200 2026-03-29 10:32 by ÌÆãå¶ù
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û