24小时热门版块排行榜    

查看: 2840  |  回复: 10

hedge

银虫 (小有名气)


[交流] 【求助】vasp安装与编译问题(100金币)

各位大虾,对VASP安装和编译问题,我实在感到迷茫。
论坛上的资料绝大多数是以VASP.4.6,vasp.4.lib,L_mkl_p_9.1.023,  
l_fc_pl_9.1.036为例,可能大多数是抄袭或直接引用过来。不排除按步就班,编译成功的。
但是现在各种软件不断更新,其中L_mkl_p_9.1.023在RHEL5以上的版本就不能成功,GLIBC不匹配,网上也没有找到解决方法。升级GLIBC或导致不可预知的后果。
同时mkl,ifc及vasp均为新版本,前两个升级了N次了。


各位高手大虾,本人是初学,自已弄了一台组装8cpu服务器瞎折腾,安装了RHEL5.2。但是vasp安装却始终装不上,安装过程按照论坛资料上的那以SUSE为例的版本,最后不能make成功,错误信息为:cannot find -lmkl_lapack。本次试过N次了,因为对makefile的修改比较烦琐,害怕改错或漏改了某处,所以做了不10次的修改,但都不能MAKE成功。心恢意冷,只好在这里求助了。

希望有大虾提供我一个自已编译成功的安装过程,希望是RHEL5以上系统的。当然越详细越好!100金币酬劳。每个回贴一个金币,拒绝灌水!
本人EMAIL: hedge80@sina.com.cn.

同时问一下,为什么对makefile文件要做这么多的改动?这些改动的依据是什么?每安装一次(不管是哪一个版本)都要做这么多的改动吗?拷贝vasp.4.lib中的makefile.linux文件时如何选择?(里面有很多的makefile文件).
另外安装Mkl和ifc的时候,修改环境变量主要是修改什么??

我的问题可能太弱,但后进末学,勿怪。

[ Last edited by hedge on 2010-11-29 at 17:16 ]
回复此楼

» 收录本帖的淘贴专辑推荐

@个人收集@ 第一性原理杂 VASP

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

» 抢金币啦!回帖就可以得到:

查看全部散金贴

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
回帖支持 ( 显示支持度最高的前 50 名 )

sxjsn1

金虫 (小有名气)


★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
cenwanglai(金币+2):谢谢回复! 2010-12-08 16:52:14
你要知道你的ifort icc还有MKL的路径 用p4那个Makefile文件
安装上ifort icc MKL后还要把它们source一下
如source /opt/intel/Compiler/11.1/072/bin/intel64/ifortvars_intel64
把里面FC  BLAS LAPACK路径改为你的安装路径就行了
如FC=/opt/intel/Compiler/11.1/073/bin/intel64/ifort
BLAS=-L/opt/intel/mkl/10.2.4.032/lib/em64t -lmkl_intel_ilp64 -lmkl_core -lguide -lpthread
lapack
LAPACK=-L/opt/intel/mkl/10.2.6.038/lib/em64t -lmkl_intel_lp64 -lmkl_blacs_lp64 -lmkl_sequential -lmkl_vml_mc -lmkl_core -liomp5
希望能对你有所帮助
7楼2010-12-08 16:48:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Prettyswan

木虫 (小有名气)


★ ★ ★
cenwanglai(金币+3):谢谢,欢迎常来! 2010-12-01 09:44:20
hedge(金币+16): 2010-12-01 14:27:16
我认为VASP的安装几乎与Linux的发行版无关,我在Ubuntu10.04(双核,奔D)上安装成功过,在Ubuntu10.10(四核,Intel)上也安装成功过,昨天刚刚在RHEL6(四核Intel)上安装成功VASP4.6。我是按照intel官方论坛上做的,它使用的icc、ifc、RHEL和intel自己的mpi、mkl;而我使用的是gcc、gfortran、openmpi、mkl和Ubuntu(RHEL6也用过,makefile没有改动)我发现我几乎没有做什么改动就照搬下来了。我安装的经验表明:VASP的安装与使用的编译器和数学库有关,只要编译器和数学库一样(主要是数学库),makefile文件就一样。

这是我整理编写的我编译安装的过程,32位的和64位的串/并行都有,RHEL6上也照此步骤和设置,没有改动。网上很多帖子已经给出了很详细的过程和解答,我这里只给出我安装过程中的命令和makefile需要修改的地方,我感觉应该对你有用。
引用回帖:
安装环境:(1)ubuntu10.04(32位),奔 D;intel-mkl10.2.5.35,GFortran,G++4.4;
(2)ubuntu10.04(64位),intel Core2*4;intel-mkl10.2.5.35,GFortran,G
++4.4;
(其中,VASP的安装包是 4.6版本的,GFortran、Gcc以及并行版本中使用的 OpenMpi,
均为通过新立德软件包管理器自动安装;数学库为英特尔非商业版本:http://software.intel.com/en-us/ ... -software-download/
(虽然说计算类软件依赖于数学库,而数学库依赖于处理器,但是我的安装经验表明,对于 Intel处理器来说数学库的设置 32位、64位串/并行版几乎完全一样,几乎没有太大的区别;对于并行版本来说重要的是在于对 CPP、FFT和 MPI部分的设置)
(本安装过程主要参考英特尔官方论坛:http://software.intel.com/en-us/ ... -intel-mkl-in-vasp/
http://qingyan1971.spaces.live.c ... 75FC440F6!432.entry,编译的基本知识来自于 Ubuntu中文论坛 Wiki:http://wiki.ubuntu.org.cn/InstallingCompilers
gleerat@gleerat-desktop:~$ tar -xvf /home/gleerat/下载/vasp.4.6.tar.gz -C /tmp
gleerat@gleerat-desktop:~$ tar -vxf /home/gleerat/下载/l_mkl_p_10.2.5.035.tar.gz -C /tmp/
gleerat@gleerat-desktop:~$ tar -xvf /home/gleerat/下载/vasp.4.lib.tar.gz -C /tmp
gleerat@gleerat-desktop:~$ cd /tmp/l_mkl_p_10.2.5.035/
gleerat@gleerat-desktop:/tmp/l_mkl_p_10.2.5.035$ ./install.sh
##对于Ubuntu系统,它隐藏了root账户,在安装MKL过程中可以用sudo passwd root创建root账户,
##在使用之后用sudo passwd root -l取消。
gleerat@gleerat-desktop:~$ cd /opt/intel/mkl/10.2.5.035/interfaces/fftw3xf
gleerat@gleerat-desktop:/opt/intel/mkl/10.2.5.035/interfaces/fftw3xf$ gedit makefile
##修改makefile文件,将i㏄都改成gcc
gleerat@gleerat-desktop:/opt/intel/mkl/10.2.5.035/interfaces/fftw3xf$ make libem64t compiler
=gcc
gleerat@gleerat-desktop:/opt/intel/mkl/10.2.5.035/interfaces/fftw3xf$ sudo cp libfftw3xf_gcc.a /
opt/intel/mkl/10.2.5.035/lib/em64t/
gleerat@gleerat-desktop:/opt/intel/mkl/10.2.5.035/interfaces/fftw3xf$ cd /tmp/vasp.4.lib
gleerat@gleerat-desktop:/tmp/vasp.4.lib$ export LC_ALL=C
gleerat@gleerat-desktop:/tmp/vasp.4.lib$ make -f makefile.linux_gfortran
rm: cannot remove `libdmy.a': No such file or directory
make: [libdmy.a] Error 1 (ignored)
ar vq libdmy.a preclib.o timing_.o derrf_.o dclock_.o  diolib.o dlexlib.o drdatab.o
ar: creating libdmy.a
a - preclib.o
a - timing_.o
a - derrf_.o
a - dclock_.o
a - diolib.o
a - dlexlib.o
a - drdatab.o
gleerat@gleerat-desktop:/tmp/vasp.4.lib$ make -f makefile.linux_gfortran
make: `libdmy.a' is up to date.
gleerat@gleerat-desktop:/tmp/vasp.4.lib$ cd /tmp/vasp.4.6
gleerat@gleerat-desktop:/tmp/vasp.4.6$ gedit makefile.linux_gfortran
##修改makefile.linux_gfortran中的数学库设置(32位):
# Atlas based libraries
#ATLASHOME= /usr/lib/blas/threaded-atlas
#BLAS=   -L/usr/lib/blas/atlas -lblas
#BLAS=   -L$(ATLASHOME)  -lf77blas -latlas
# use specific libraries (default library path points to other libraries)
#BLAS= $(ATLASHOME)/libf77blas.a $(ATLASHOME)/libatlas.a
# use the mkl Intel libraries for p4 (www.intel.com)
BLAS= -L/opt/intel/mkl/10.2.3.035/lib/32 -lmkl_intel -lpthread -lmkl_sequential -lmkl_core
# LAPACK, simplest use vasp.4.lib/lapack_double
#LAPACK= ../vasp.4.lib/lapack_double.o
# use atlas optimized part of lapack
#LAPACK= ../vasp.4.lib/lapack_atlas.o  -llapack -lblas# use the mkl Intel lapack
LAPACK= -L/opt/intel/mkl/10.2.5.035/lib/32 -lmkl_intel -lmkl_lapack -lmkl_sequential -lmkl_core
-lpthread
#LAPACK= -L/usr/lib/lapack/atlas -llapack
#-----------------------------------------------------------------------
##修改makefile.linux_gfortran中的数学库设置(64位)串行&并行:
# Atlas based libraries
#ATLASHOME= /usr/lib/blas/threaded-atlas
#BLAS=   -L/usr/lib/blas/atlas -lblas
#BLAS=   -L$(ATLASHOME)  -lf77blas -latlas
# use specific libraries (default library path points to other libraries)
#BLAS= $(ATLASHOME)/libf77blas.a $(ATLASHOME)/libatlas.a
# use the mkl Intel libraries for p4 (www.intel.com)
BLAS= -L/opt/intel/mkl/10.2.3.035/lib/em64t -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthre
ad
# LAPACK, simplest use vasp.4.lib/lapack_double
#LAPACK= ../vasp.4.lib/lapack_double.o
# use atlas optimized part of lapack
#LAPACK= ../vasp.4.lib/lapack_atlas.o  -llapack -lblas
# use the mkl Intel lapack
LAPACK= -L/opt/intel/mkl/10.2.5.035/lib/em64t -lmkl_intel_lp64  -lmkl_sequential -lmkl_core -lpt
hread
#LAPACK= -L/usr/lib/lapack/atlas -llapack
#   #并行版本需要的额外设置:   
##将CPP注释掉:
#CPP    = $(CPP_) -DHOST=\"LinuxGfortran\" \
          -Dkind8 -DNGXhalf -DCACHE_SIZE=2000 -DGfortran -Davoidalloc \
#          -DRPROMU_DGEMV
##修改general fortran flags:
FFLAGS =  -I/opt/intel/mkl/10.2.5.035/include/fftw -FR -lowercase -ffree-form -ffree-line-length-n
one
##将fft libraries注释掉:
#FFT3D   = fft3dfurth.o fft3dlib.o
#FFT3D   = fftw3d+furth.o fft3dlib.o
##MPI部分的修改:
FC=mpif90
FCL=$(FC)
CPP    = $(CPP_) -DMPI  -DHOST=\"LinuxGfortran\" \
     -Dkind8 -DNGZhalf -DCACHE_SIZE=2000 -DPGF90 -Davoidalloc -DRPROMU_DGEMV -DscaLA
PACK
#对CPP添加-DscaLAPACK不是必须的
#BLACS=/usr/local/BLACS_lam
#SCA_= /usr/local/SCALAPACK_lam
#SCA= $(SCA_)/scalapack_LINUX.a $(SCA_)/pblas_LINUX.a $(SCA_)/tools_LINUX.a \
# $(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a $(BLACS)/LIB/blacs_MPI-LINUX-0.a $(BLACS)/LIB/bla
csF77init_MPI-LINUX-0.aSCA= /opt/intel/mkl/10.2.5.035/lib/em64t/libmkl_scalapack_lp64.a /opt/intel/mkl/10.2.5.035/lib/
em64t/libmkl_blacs_openmpi_lp64.a
LIB     = -L../vasp.4.lib -ldmy  \
      ../vasp.4.lib/linpack_double.o $(LAPACK) \
      $(SCA) $(BLAS)
# FFT: only option  fftmpi.o with fft3dlib of Juergen Furthmueller
FFT3D   = fftmpi.o fftmpi_map.o fft3dlib.o /opt/intel/mkl/10.2.5.035/lib/em64t/libfftw3xf_gcc.a
#libfftw3xf_gcc.a需要事先生成,然后拷贝到该目录中
#-----------------------------------------------------------------------
gleerat@gleerat-desktop:/tmp/vasp.4.6$ sudo vim /etc/ld.so.conf.d/mkl.conf
##将数学库的路径写入conf文件:
  /opt/intel/mkl/10.2.5.035/lib/32
#写入MPI的环境变量:
  /usr/lib/openmpi/lib
  /usr/bin
#-----------------------------------------------------------------------
gleerat@gleerat-desktop:/tmp/vasp.4.6$ sudo  ldconfig
gleerat@gleerat-desktop:/tmp/vasp.4.6$ make -f makefile.linux_gfortran
gleerat@gleerat-desktop:/tmp/vasp.4.6$ sudo cp ./vasp /usr/bin
##如果是并行版本的,最好将可执行文件重命名为vaspmpi以便与串行版本相区别
gleerat@gleerat-desktop:/tmp/vasp.4.6$ cd /home/gleerat/vasp/accurate
gleerat@gleerat-desktop:~/vasp/accurate$ vasp

据说,在Intel平台上使用IFC、ICC、MKL最快,另外,使用IFC计算大体系有时会出现Segment Fault,但是同样的体系这个问题在Gfortran上没有出现过,所以我一直用Gfortran;关于这个问题见http://muchong.com/bbs/viewthread.php?tid=2583137http://muchong.com/bbs/viewthread.php?tid=2493388
希望对你有用。

[ Last edited by Prettyswan on 2010-12-1 at 22:43 ]

» 本帖已获得的红花(最新10朵)

6楼2010-12-01 09:25:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通回帖

hedge(金币+2): 2010-11-29 17:29:56
zzy870720z(金币+1):谢谢指教 2010-11-29 22:39:31
修改makefile是因为vasp的在每个makefile中都提供了很多种选择,所以在使用的时候可以根据实际情况选择
你的问题没有找到lmkl_lapack这样一个库函数,你确定mkl安装好了而且正确的路径添加到makefile里了吗
2楼2010-11-29 17:05:21
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hedge

银虫 (小有名气)


引用回帖:
Originally posted by sunyang1988 at 2010-11-29 17:05:21:
修改makefile是因为vasp的在每个makefile中都提供了很多种选择,所以在使用的时候可以根据实际情况选择
你的问题没有找到lmkl_lapack这样一个库函数,你确定mkl安装好了而且正确的路径添加到makefile里了吗

IPO link: can not find -lmkl_lapack
ifort:error:problem during multi-file optimization complication(code 1)
make:***[vasp] Error 1


makefile文件:
第128行改为:
BLAS=-L/opt/intel/mkl/9.1.023/lib/em64t -lmkl_em64t -lguide -lpthread

所有的安装默认。
3楼2010-11-29 19:58:00
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hedge

银虫 (小有名气)


引用回帖:
Originally posted by hedge at 2010-11-29 16:29:59:
各位大虾,对VASP安装和编译问题,我实在感到迷茫。
论坛上的资料绝大多数是以VASP.4.6,vasp.4.lib,L_mkl_p_9.1.023,  
l_fc_pl_9.1.036为例,可能大多数是抄袭或直接引用过来。不排除按步就班,编译成功的。 ...

全部的makefile文件:

.SUFFIXES: .inc .f .f90 .F
#-----------------------------------------------------------------------
# Makefile for Intel Fortran compiler for P4 systems
#
# The makefile was tested only under Linux on Intel platforms
# (Suse 5.3- Suse 9.0)
# the followin compiler versions have been tested
# 5.0, 6.0, 7.0 and 7.1 (some 8.0 versions seem to fail compiling the code)
# presently we recommend version 7.1 or 7.0, since these
# releases have been used to compile the present code versions
#
# it might be required to change some of library pathes, since
# LINUX installation vary a lot
# Hence check ***ALL**** options in this makefile very carefully
#-----------------------------------------------------------------------
#
# BLAS must be installed on the machine
# there are several options:
# 1) very slow but works:
#   retrieve the lapackage from ftp.netlib.org
#   and compile the blas routines (BLAS/SRC directory)
#   please use g77 or f77 for the compilation. When I tried to
#   use pgf77 or pgf90 for BLAS, VASP hang up when calling
#   ZHEEV  (however this was with lapack 1.1 now I use lapack 2.0)
# 2) most desirable: get an optimized BLAS
#
# the two most reliable packages around are presently:
# 3a) Intels own optimised BLAS (PIII, P4, Itanium)
#     http://developer.intel.com/software/products/mkl/
#   this is really excellent when you use Intel CPU's
#
# 3b) or obtain the atlas based BLAS routines
#     http://math-atlas.sourceforge.net/
#   you certainly need atlas on the Athlon, since the  mkl
#   routines are not optimal on the Athlon.
#   If you want to use atlas based BLAS, check the lines around LIB=
#
# 3c) mindblowing fast SSE2 (4 GFlops on P4, 2.53 GHz)
#   Kazushige Goto's BLAS
#   http://www.cs.utexas.edu/users/kgoto/signup_first.html
#
#-----------------------------------------------------------------------

# all CPP processed fortran files have the extension .f90
SUFFIX=.f90

#-----------------------------------------------------------------------
# fortran compiler and linker
#-----------------------------------------------------------------------
#FC=ifc
# fortran linker
#FCL=$(FC)


#-----------------------------------------------------------------------
# whereis CPP ?? (I need CPP, can't use gcc with proper options)
# that's the location of gcc for SUSE 5.3
#
#  CPP_   =  /usr/lib/gcc-lib/i486-linux/2.7.2/cpp -P -C
#
# that's probably the right line for some Red Hat distribution:
#
#  CPP_   =  /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/cpp -P -C
#
#  SUSE X.X, maybe some Red Hat distributions:

CPP_ =  ./preprocess <$*.F | /usr/bin/cpp -P -C -traditional >$*$(SUFFIX)

#-----------------------------------------------------------------------
# possible options for CPP:
# NGXhalf             charge density   reduced in X direction
# wNGXhalf            gamma point only reduced in X direction
# avoidalloc          avoid ALLOCATE if possible
# IFC                 work around some IFC bugs
# CACHE_SIZE          1000 for PII,PIII, 5000 for Athlon, 8000-12000 P4
# RPROMU_DGEMV        use DGEMV instead of DGEMM in RPRO (depends on used BLAS)
# RACCMU_DGEMV        use DGEMV instead of DGEMM in RACC (depends on used BLAS)
#-----------------------------------------------------------------------

#CPP     = $(CPP_)  -DHOST=\"LinuxIFC\" \
          -Dkind8 -DNGXhalf -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc \
#          -DRPROMU_DGEMV  -DRACCMU_DGEMV

#-----------------------------------------------------------------------
# general fortran flags  (there must a trailing blank on this line)
#-----------------------------------------------------------------------

FFLAGS =  -FR -lowercase -assume byterecl

#-----------------------------------------------------------------------
# optimization
# we have tested whether higher optimisation improves performance
# -axK  SSE1 optimization,  but also generate code executable on all mach.
#       xK improves performance somewhat on XP, and a is required in order
#       to run the code on older Athlons as well
# -xW   SSE2 optimization
# -axW  SSE2 optimization,  but also generate code executable on all mach.
# -tpp6 P3 optimization
# -tpp7 P4 optimization
#-----------------------------------------------------------------------

OFLAG=-O3 -xW -tpp7

OFLAG_HIGH = $(OFLAG)
OBJ_HIGH =

OBJ_NOOPT =
DEBUG  = -FR -O0
INLINE = $(OFLAG)


#-----------------------------------------------------------------------
# the following lines specify the position of BLAS  and LAPACK
# on P4, VASP works fastest with the libgoto library
# so that's what I recommend
#-----------------------------------------------------------------------

# Atlas based libraries
#ATLASHOME= $(HOME)/archives/BLAS_OPT/ATLAS/lib/Linux_P4SSE2/
#BLAS=   -L$(ATLASHOME)  -lf77blas -latlas

# use specific libraries (default library path might point to other libraries)
#BLAS= $(ATLASHOME)/libf77blas.a $(ATLASHOME)/libatlas.a

# use the mkl Intel libraries for p4 (www.intel.com)
# mkl.5.1
# set -DRPROMU_DGEMV  -DRACCMU_DGEMV in the CPP lines
#BLAS=-L/opt/intel/mkl/9.1.023/lib/em64t -lmkl_em64t -lguide -lpthread

# mkl.5.2 requires also to -lguide library
# set -DRPROMU_DGEMV  -DRACCMU_DGEMV in the CPP lines
#BLAS=-L/opt/intel/mkl/lib/32 -lmkl_p4 -lguide -lpthread

# even faster Kazushige Goto's BLAS
# http://www.cs.utexas.edu/users/kgoto/signup_first.html
#BLAS=  /opt/libs/libgoto/libgoto_p4_512-r0.6.so

# LAPACK, simplest use vasp.4.lib/lapack_double
LAPACK= ../vasp.4.lib/lapack_double.o

# use atlas optimized part of lapack
#LAPACK= ../vasp.4.lib/lapack_atlas.o  -llapack -lcblas

# use the mkl Intel lapack
LAPACK= -lmkl_lapack

#-----------------------------------------------------------------------

#LIB  = -L../vasp.4.lib -ldmy \
     ../vasp.4.lib/linpack_double.o $(LAPACK) \
     $(BLAS)

# options for linking (for compiler version 6.X, 7.1) nothing is required
LINK    =
# compiler version 7.0 generates some vector statments which are located
# in the svml library, add the LIBPATH and the library (just in case)
#LINK    =  -L/opt/intel/compiler70/ia32/lib/ -lsvml

#-----------------------------------------------------------------------
# fft libraries:
# VASP.4.6 can use fftw.3.0.X (http://www.fftw.org)
# since this version is faster on P4 machines, we recommend to use it
#-----------------------------------------------------------------------

#FFT3D   = fft3dfurth.o fft3dlib.o
#FFT3D   = fftw3d.o fft3dlib.o   /opt/libs/fftw-3.0.1/lib/libfftw3.a


#=======================================================================
# MPI section, uncomment the following lines
#
# one comment for users of mpich or lam:
# You must *not* compile mpi with g77/f77, because f77/g77            
# appends *two* underscores to symbols that contain already an        
# underscore (i.e. MPI_SEND becomes mpi_send__).  The pgf90/ifc
# compilers however append only one underscore.
# Precompiled mpi version will also not work !!!
#
# We found that mpich.1.2.1 and lam-6.5.X to lam-7.0.4 are stable
# mpich.1.2.1 was configured with
#  ./configure -prefix=/usr/local/mpich_nodvdbg -fc="pgf77 -Mx,119,0x200000"  \
# -f90="pgf90 " \
# --without-romio --without-mpe -opt=-O \
#
# lam was configured with the line
#  ./configure  -prefix /opt/libs/lam-7.0.4 --with-cflags=-O -with-fc=ifc \
# --with-f77flags=-O --without-romio
#
# please note that you might be able to use a lam or mpich version
# compiled with f77/g77, but then you need to add the following
# options: -Msecond_underscore (compilation) and -g77libs (linking)
#
# !!! Please do not send me any queries on how to install MPI, I will
# certainly not answer them !!!!
#=======================================================================
#-----------------------------------------------------------------------
# fortran linker for mpi: if you use LAM and compiled it with the options
# suggested above,  you can use the following line
#-----------------------------------------------------------------------

FC=mpif90
FCL=$(FC)

#-----------------------------------------------------------------------
# additional options for CPP in parallel version (see also above):
# NGZhalf               charge density   reduced in Z direction
# wNGZhalf              gamma point only reduced in Z direction
# scaLAPACK             use scaLAPACK (usually slower on 100 Mbit Net)
#-----------------------------------------------------------------------

CPP    = $(CPP_) -DMPI  -DHOST=\"LinuxIFC\" -DIFC \
     -Dkind8 -DNGZhalf -DCACHE_SIZE=4000 -DPGF90 -Davoidalloc \
     -DMPI_BLOCK=500  \
    -DRPROMU_DGEMV  -DRACCMU_DGEMV

#-----------------------------------------------------------------------
# location of SCALAPACK
# if you do not use SCALAPACK simply uncomment the line SCA
#-----------------------------------------------------------------------

BLACS=$(HOME)/archives/SCALAPACK/BLACS/
SCA_=$(HOME)/archives/SCALAPACK/SCALAPACK

#SCA= $(SCA_)/libscalapack.a  \
$(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a $(BLACS)/LIB/blacs_MPI-LINUX-0.a $(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a

#SCA=

#-----------------------------------------------------------------------
# libraries for mpi
#-----------------------------------------------------------------------

LIB     = -L../vasp.4.lib -ldmy  \
      ../vasp.4.lib/linpack_double.o $(LAPACK) \
      $(SCA) $(BLAS)

# FFT: fftmpi.o with fft3dlib of Juergen Furthmueller
FFT3D   = fftmpi.o fftmpi_map.o fft3dlib.o

# fftw.3.0.1 is slighly faster and should be used if available
#FFT3D   = fftmpiw.o fftmpi_map.o fft3dlib.o   /opt/libs/fftw-3.0.1/lib/libfftw3.a

#-----------------------------------------------------------------------
# general rules and compile lines
#-----------------------------------------------------------------------
BASIC=   symmetry.o symlib.o   lattlib.o  random.o   

SOURCE=  base.o     mpi.o      smart_allocate.o      xml.o  \
         constant.o jacobi.o   main_mpi.o  scala.o   \
         asa.o      lattice.o  poscar.o   ini.o      setex.o     radial.o  \
         pseudo.o   mgrid.o    mkpoints.o wave.o      wave_mpi.o  $(BASIC) \
         nonl.o     nonlr.o    dfast.o    choleski2.o    \
         mix.o      charge.o   xcgrad.o   xcspin.o    potex1.o   potex2.o  \
         metagga.o  constrmag.o pot.o      cl_shift.o force.o    dos.o      elf.o      \
         tet.o      hamil.o    steep.o    \
         chain.o    dyna.o     relativistic.o LDApU.o sphpro.o  paw.o   us.o \
         ebs.o      wavpre.o   wavpre_noio.o broyden.o \
         dynbr.o    rmm-diis.o reader.o   writer.o   tutor.o xml_writer.o \
         brent.o    stufak.o   fileio.o   opergrid.o stepver.o  \
         dipol.o    xclib.o    chgloc.o   subrot.o   optreal.o   davidson.o \
         edtest.o   electron.o shm.o      pardens.o  paircorrection.o \
         optics.o   constr_cell_relax.o   stm.o    finite_diff.o \
         elpol.o    setlocalpp.o

INC=

vasp: $(SOURCE) $(FFT3D) $(INC) main.o
        rm -f vasp
        $(FCL) -o vasp $(LINK) main.o  $(SOURCE)   $(FFT3D) $(LIB)
makeparam: $(SOURCE) $(FFT3D) makeparam.o main.F $(INC)
        $(FCL) -o makeparam  $(LINK) makeparam.o $(SOURCE) $(FFT3D) $(LIB)
zgemmtest: zgemmtest.o base.o random.o $(INC)
        $(FCL) -o zgemmtest $(LINK) zgemmtest.o random.o base.o $(LIB)
dgemmtest: dgemmtest.o base.o random.o $(INC)
        $(FCL) -o dgemmtest $(LINK) dgemmtest.o random.o base.o $(LIB)
ffttest: base.o smart_allocate.o mpi.o mgrid.o random.o ffttest.o $(FFT3D) $(INC)
        $(FCL) -o ffttest $(LINK) ffttest.o mpi.o mgrid.o random.o smart_allocate.o base.o $(FFT3D) $(LIB)
kpoints: $(SOURCE) $(FFT3D) makekpoints.o main.F $(INC)
        $(FCL) -o kpoints $(LINK) makekpoints.o $(SOURCE) $(FFT3D) $(LIB)

clean:       
        -rm -f *.g *.f *.o *.L *.mod ; touch *.F

main.o: main$(SUFFIX)
        $(FC) $(FFLAGS)$(DEBUG)  $(INCS) -c main$(SUFFIX)
xcgrad.o: xcgrad$(SUFFIX)
        $(FC) $(FFLAGS) $(INLINE)  $(INCS) -c xcgrad$(SUFFIX)
xcspin.o: xcspin$(SUFFIX)
        $(FC) $(FFLAGS) $(INLINE)  $(INCS) -c xcspin$(SUFFIX)

makeparam.o: makeparam$(SUFFIX)
        $(FC) $(FFLAGS)$(DEBUG)  $(INCS) -c makeparam$(SUFFIX)

makeparam$(SUFFIX): makeparam.F main.F
#
# MIND: I do not have a full dependency list for the include
# and MODULES: here are only the minimal basic dependencies
# if one strucuture is changed then touch_dep must be called
# with the corresponding name of the structure
#
base.o: base.inc base.F
mgrid.o: mgrid.inc mgrid.F
constant.o: constant.inc constant.F
lattice.o: lattice.inc lattice.F
setex.o: setexm.inc setex.F
pseudo.o: pseudo.inc pseudo.F
poscar.o: poscar.inc poscar.F
mkpoints.o: mkpoints.inc mkpoints.F
wave.o: wave.inc wave.F
nonl.o: nonl.inc nonl.F
nonlr.o: nonlr.inc nonlr.F

$(OBJ_HIGH):
        $(CPP)
        $(FC) $(FFLAGS) $(OFLAG_HIGH) $(INCS) -c $*$(SUFFIX)
$(OBJ_NOOPT):
        $(CPP)
        $(FC) $(FFLAGS) $(INCS) -c $*$(SUFFIX)

fft3dlib_f77.o: fft3dlib_f77.F
        $(CPP)
        $(F77) $(FFLAGS_F77) -c $*$(SUFFIX)

.F.o:
        $(CPP)
        $(FC) $(FFLAGS) $(OFLAG) $(INCS) -c $*$(SUFFIX)
.F$(SUFFIX):
        $(CPP)
$(SUFFIX).o:
        $(FC) $(FFLAGS) $(OFLAG) $(INCS) -c $*$(SUFFIX)

# special rules
#-----------------------------------------------------------------------
# these special rules are cummulative (that is once failed
#   in one compiler version, stays in the list forever)
# -tpp5|6|7 P, PII-PIII, PIV
# -xW use SIMD (does not pay of on PII, since fft3d uses double prec)
# all other options do no affect the code performance since -O1 is used
#-----------------------------------------------------------------------

fft3dlib.o : fft3dlib.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -tpp7 -xW -prefetch- -unroll0  -vec_report3 -c $*$(SUFFIX)
fft3dfurth.o : fft3dfurth.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

radial.o : radial.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

symlib.o : symlib.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

symmetry.o : symmetry.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

dynbr.o : dynbr.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

broyden.o : broyden.F
        $(CPP)
        $(FC) -FR -lowercase -O2 -c $*$(SUFFIX)

us.o : us.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

wave.o : wave.F
        $(CPP)
        $(FC) -FR -lowercase -O0 -c $*$(SUFFIX)

LDApU.o : LDApU.F
        $(CPP)
        $(FC) -FR -lowercase -O2 -c $*$(SUFFIX)
4楼2010-11-29 20:34:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mazuju028(金币+1):谢谢交流 2010-11-30 08:18:11
hedge(金币+2): 2010-11-30 09:25:05
引用回帖:
#-----------------------------------------------------------------------
# the following lines specify the position of BLAS  and LAPACK
# on P4, VASP works fastest with the libgoto library
# so that's what I recommend
#-----------------------------------------------------------------------

# Atlas based libraries
#ATLASHOME= $(HOME)/archives/BLAS_OPT/ATLAS/lib/Linux_P4SSE2/
#BLAS=   -L$(ATLASHOME)  -lf77blas -latlas

# use specific libraries (default library path might point to other libraries)
#BLAS= $(ATLASHOME)/libf77blas.a $(ATLASHOME)/libatlas.a

# use the mkl Intel libraries for p4 (www.intel.com)
# mkl.5.1
# set -DRPROMU_DGEMV  -DRACCMU_DGEMV in the CPP lines
#BLAS=-L/opt/intel/mkl/9.1.023/lib/em64t -lmkl_em64t -lguide -lpthread

# mkl.5.2 requires also to -lguide library
# set -DRPROMU_DGEMV  -DRACCMU_DGEMV in the CPP lines
#BLAS=-L/opt/intel/mkl/lib/32 -lmkl_p4 -lguide -lpthread

# even faster Kazushige Goto's BLAS
# http://www.cs.utexas.edu/users/kgoto/signup_first.html
#BLAS=  /opt/libs/libgoto/libgoto_p4_512-r0.6.so

你没指定blas啊
就算指定,估计你指定的那三个也不全
后面那几个改成这些试试
-lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread
5楼2010-11-29 22:47:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

enola

捐助贵宾 (正式写手)


引用回帖:
Originally posted by hedge at 2010-11-29 20:34:50:


全部的makefile文件:

.SUFFIXES: .inc .f .f90 .F
#-----------------------------------------------------------------------
# Makefile for Intel Fortran compiler for P4 systems
#
# The make ...

感谢hedge的makefile
8楼2010-12-18 18:00:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dickli2008

银虫 (小有名气)


★ ★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
sunyang1988(金币+3):辛苦了 2010-12-25 22:49:27
全部的makefile
.SUFFIXES: .inc .f .f90 .F
#-----------------------------------------------------------------------
# Makefile for Intel Fortran compiler for Pentium/Athlon/Opteron
# bases systems
# we recommend this makefile for both Intel as well as AMD systems
# for AMD based systems appropriate BLAS and fftw libraries are
# however mandatory (whereas they are optional for Intel platforms)
#
# The makefile was tested only under Linux on Intel and AMD platforms
# the following compiler versions have been tested:
#  - ifc.7.1  works stable somewhat slow but reliably
#  - ifc.8.1  fails to compile the code properly
#  - ifc.9.1  recommended (both for 32 and 64 bit)
#  - ifc.10.1 partially recommended (both for 32 and 64 bit)
#             tested build 20080312 Package ID: l_fc_p_10.1.015
#             the gamma only mpi version can not be compiles
#             using ifc.10.1
#
# it might be required to change some of library pathes, since
# LINUX installation vary a lot
# Hence check ***ALL*** options in this makefile very carefully
#-----------------------------------------------------------------------
#
# BLAS must be installed on the machine
# there are several options:
# 1) very slow but works:
#   retrieve the lapackage from ftp.netlib.org
#   and compile the blas routines (BLAS/SRC directory)
#   please use g77 or f77 for the compilation. When I tried to
#   use pgf77 or pgf90 for BLAS, VASP hang up when calling
#   ZHEEV  (however this was with lapack 1.1 now I use lapack 2.0)
# 2) more desirable: get an optimized BLAS
#
# the two most reliable packages around are presently:
# 2a) Intels own optimised BLAS (PIII, P4, PD, PC2, Itanium)
#     http://developer.intel.com/software/products/mkl/
#   this is really excellent, if you use Intel CPU's
#
# 2b) probably fastest SSE2 (4 GFlops on P4, 2.53 GHz, 16 GFlops PD,
#     around 30 GFlops on Quad core)
#   Kazushige Goto's BLAS
#   http://www.cs.utexas.edu/users/kgoto/signup_first.html
#   http://www.tacc.utexas.edu/resources/software/
#
#-----------------------------------------------------------------------

# all CPP processed fortran files have the extension .f90
SUFFIX=.f90

#-----------------------------------------------------------------------
# fortran compiler and linker
#-----------------------------------------------------------------------
FC=ifort
# fortran linker
FCL=$(FC)


#-----------------------------------------------------------------------
# whereis CPP ?? (I need CPP, can't use gcc with proper options)
# that's the location of gcc for SUSE 5.3
#
#  CPP_   =  /usr/lib/gcc-lib/i486-linux/2.7.2/cpp -P -C
#
# that's probably the right line for some Red Hat distribution:
#
#  CPP_   =  /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/cpp -P -C
#
#  SUSE X.X, maybe some Red Hat distributions:

CPP_ =  ./preprocess <$*.F | /usr/bin/cpp -P -C -traditional >$*$(SUFFIX)

#-----------------------------------------------------------------------
# possible options for CPP:
# NGXhalf             charge density   reduced in X direction
# wNGXhalf            gamma point only reduced in X direction
# avoidalloc          avoid ALLOCATE if possible
# PGF90               work around some for some PGF90 / IFC bugs
# CACHE_SIZE          1000 for PII,PIII, 5000 for Athlon, 8000-12000 P4, PD
# RPROMU_DGEMV        use DGEMV instead of DGEMM in RPRO (depends on used BLAS)
# RACCMU_DGEMV        use DGEMV instead of DGEMM in RACC (depends on used BLAS)
#-----------------------------------------------------------------------

#CPP     = $(CPP_)  -DHOST=\"LinuxIFC\" \
          -Dkind8 -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc -DNGXhalf \
#          -DRPROMU_DGEMV  -DRACCMU_DGEMV

#-----------------------------------------------------------------------
# general fortran flags  (there must a trailing blank on this line)
# byterecl is strictly required for ifc, since otherwise
# the WAVECAR file becomes huge
#-----------------------------------------------------------------------

FFLAGS =  -I/opt/intel/Compiler/11.0/074/mkl/include/fftw \
          -I/opt/intel/Compiler/11.0/074/include \
          -I/opt/intel/Compiler/11.0/074/mkl/include \
          -FR -lowercase -assume byterecl

#-----------------------------------------------------------------------
# optimization
# we have tested whether higher optimisation improves performance
# -axK  SSE1 optimization,  but also generate code executable on all mach.
#       xK improves performance somewhat on XP, and a is required in order
#       to run the code on older Athlons as well
# -xW   SSE2 optimization
# -axW  SSE2 optimization,  but also generate code executable on all mach.
# -tpp6 P3 optimization
# -tpp7 P4 optimization
#-----------------------------------------------------------------------

# ifc.9.1, ifc.10.1 recommended
OFLAG=-O3

OFLAG_HIGH = $(OFLAG)
OBJ_HIGH =
OBJ_NOOPT =
DEBUG  = -FR -O0
INLINE = $(OFLAG)

#-----------------------------------------------------------------------
# the following lines specify the position of BLAS  and LAPACK
# VASP works fastest with the libgoto library
# so that's what we recommend
#-----------------------------------------------------------------------

# mkl.10.0
# set -DRPROMU_DGEMV  -DRACCMU_DGEMV in the CPP lines
BLAS= -L/opt/intel/Compiler/11.0/074/mkl/lib/em64t -lmkl -lpthread

# even faster for VASP Kazushige Goto's BLAS
# http://www.cs.utexas.edu/users/kgoto/signup_first.html
# parallel goto version requires sometimes -libverbs
#BLAS=  /opt/libs/libgoto/libgoto.so

# LAPACK, simplest use vasp.5.lib/lapack_double
LAPACK= ../vasp.5.lib/lapack_double.o

# use the mkl Intel lapack
#LAPACK= -lmkl_lapack

#-----------------------------------------------------------------------

#LIB  = -L../vasp.5.lib -ldmy \
     ../vasp.5.lib/linpack_double.o $(LAPACK) \
     $(BLAS)

# options for linking, nothing is required (usually)
LINK    =

#-----------------------------------------------------------------------
# fft libraries:
# VASP.5.2 can use fftw.3.1.X (http://www.fftw.org)
# since this version is faster on P4 machines, we recommend to use it
#-----------------------------------------------------------------------

#FFT3D   = fft3dfurth.o fft3dlib.o

# alternatively: fftw.3.1.X is slighly faster and should be used if available
#FFT3D   = fftw3d.o fft3dlib.o   /opt/libs/fftw-3.1.2/lib/libfftw3.a


#=======================================================================
# MPI section, uncomment the following lines until
#    general  rules and compile lines
# presently we recommend OPENMPI, since it seems to offer better
# performance than lam or mpich
#
# !!! Please do not send me any queries on how to install MPI, I will
# certainly not answer them !!!!
#=======================================================================
#-----------------------------------------------------------------------
# fortran linker for mpi
#-----------------------------------------------------------------------

FC=mpif90
FCL=$(FC)

#-----------------------------------------------------------------------
# additional options for CPP in parallel version (see also above):
# NGZhalf               charge density   reduced in Z direction
# wNGZhalf              gamma point only reduced in Z direction
# scaLAPACK             use scaLAPACK (usually slower on 100 Mbit Net)
#-----------------------------------------------------------------------

CPP    = $(CPP_) -DMPI  -DHOST=\"LinuxIFC\" -DIFC \
     -Dkind8 -DCACHE_SIZE=4000 -DPGF90 -Davoidalloc -DNGZhalf \
     -DMPI_BLOCK=8000  -DRPROMU_DGEMV  -DRACCMU_DGEMV

#-----------------------------------------------------------------------
# location of SCALAPACK
# if you do not use SCALAPACK simply leave that section commented out
#-----------------------------------------------------------------------

#BLACS=$(HOME)/archives/SCALAPACK/BLACS/
#SCA_=$(HOME)/archives/SCALAPACK/SCALAPACK

#SCA= $(SCA_)/libscalapack.a  \
# $(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a $(BLACS)/LIB/blacs_MPI-LINUX-0.a $(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a

SCA=

#-----------------------------------------------------------------------
# libraries for mpi
#-----------------------------------------------------------------------

LIB     = -L../vasp.5.lib -ldmy  \
      ../vasp.5.lib/linpack_double.o  \
      -L/opt/intel/Compiler/11.0/074/mkl/lib/em64t \
      -lfftw3xf_gnu -lmkl_emt64t -lguide -lpthread -lm \
      -L/opt/intel/Compiler/11.0/074/lib/intel64 -lsvml -limf \
      $(LAPACK) $(BLAS) $(SCA)

# FFT: fftmpi.o with fft3dlib of Juergen Furthmueller
FFT3D   = fftmpi.o fftmpi_map.o fft3dfurth.o fft3dlib.o \
        /opt/intel/Compiler/11.0/074/mkl/lib/em64t/libfftw3xf_gnu.a

# alternatively: fftw.3.1.X is slighly faster and should be used if available
#FFT3D   = fftmpi.o fftmpi_map.o fftw3d.o fft3dlib.o \
      /opt/intel/Compiler/11.0/074/mkl/lib/em64t/libfftw3xf_gnu.a

#-----------------------------------------------------------------------
# general rules and compile lines
#-----------------------------------------------------------------------
BASIC=   symmetry.o symlib.o   lattlib.o  random.o   

SOURCE=  base.o     mpi.o      smart_allocate.o      xml.o  \
         constant.o jacobi.o   main_mpi.o  scala.o   \
         asa.o      lattice.o  poscar.o   ini.o       xclib.o     xclib_grad.o \
         radial.o   pseudo.o   mgrid.o    gridq.o     ebs.o  \
         mkpoints.o wave.o     wave_mpi.o  wave_high.o  \
         $(BASIC)   nonl.o     nonlr.o    nonl_high.o dfast.o    choleski2.o \
         mix.o      hamil.o    xcgrad.o   xcspin.o    potex1.o   potex2.o  \
         metagga.o constrmag.o cl_shift.o relativistic.o LDApU.o \
         paw_base.o egrad.o    pawsym.o   pawfock.o  pawlhf.o    paw.o   \
         mkpoints_full.o       charge.o   dipol.o    pot.o  \
         dos.o      elf.o      tet.o      tetweight.o hamil_rot.o \
         steep.o    chain.o    dyna.o     sphpro.o    us.o  core_rel.o \
         aedens.o   wavpre.o   wavpre_noio.o broyden.o \
         dynbr.o    rmm-diis.o reader.o   writer.o   tutor.o xml_writer.o \
         brent.o    stufak.o   fileio.o   opergrid.o stepver.o  \
         chgloc.o   fast_aug.o fock.o     mkpoints_change.o sym_grad.o \
         mymath.o   internals.o dimer_heyden.o dvvtrajectory.o vdwforcefield.o \
         hamil_high.o nmr.o    force.o \
         pead.o     subrot.o   subrot_scf.o pwlhf.o  gw_model.o optreal.o   davidson.o \
         electron.o rot.o  electron_all.o shm.o    pardens.o  paircorrection.o \
         optics.o   constr_cell_relax.o   stm.o    finite_diff.o elpol.o    \
         hamil_lr.o rmm-diis_lr.o  subrot_cluster.o subrot_lr.o \
         lr_helper.o hamil_lrf.o   elinear_response.o ilinear_response.o \
         linear_optics.o linear_response.o   \
         setlocalpp.o  wannier.o electron_OEP.o electron_lhf.o twoelectron4o.o \
         ratpol.o screened_2e.o wave_cacher.o chi_base.o wpot.o local_field.o \
         ump2.o bse.o acfdt.o chi.o sydmat.o

INC=

vasp: $(SOURCE) $(FFT3D) $(INC) main.o
        rm -f vasp
        $(FCL) -o vasp main.o  $(SOURCE)   $(FFT3D) $(LIB) $(LINK)
makeparam: $(SOURCE) $(FFT3D) makeparam.o main.F $(INC)
        $(FCL) -o makeparam  $(LINK) makeparam.o $(SOURCE) $(FFT3D) $(LIB)
zgemmtest: zgemmtest.o base.o random.o $(INC)
        $(FCL) -o zgemmtest $(LINK) zgemmtest.o random.o base.o $(LIB)
dgemmtest: dgemmtest.o base.o random.o $(INC)
        $(FCL) -o dgemmtest $(LINK) dgemmtest.o random.o base.o $(LIB)
ffttest: base.o smart_allocate.o mpi.o mgrid.o random.o ffttest.o $(FFT3D) $(INC)
        $(FCL) -o ffttest $(LINK) ffttest.o mpi.o mgrid.o random.o smart_allocate.o base.o $(FFT3D) $(LIB)
kpoints: $(SOURCE) $(FFT3D) makekpoints.o main.F $(INC)
        $(FCL) -o kpoints $(LINK) makekpoints.o $(SOURCE) $(FFT3D) $(LIB)

clean:       
        -rm -f *.g *.f *.o *.L *.mod ; touch *.F

main.o: main$(SUFFIX)
        $(FC) $(FFLAGS)$(DEBUG)  $(INCS) -c main$(SUFFIX)
xcgrad.o: xcgrad$(SUFFIX)
        $(FC) $(FFLAGS) $(INLINE)  $(INCS) -c xcgrad$(SUFFIX)
xcspin.o: xcspin$(SUFFIX)
        $(FC) $(FFLAGS) $(INLINE)  $(INCS) -c xcspin$(SUFFIX)

makeparam.o: makeparam$(SUFFIX)
        $(FC) $(FFLAGS)$(DEBUG)  $(INCS) -c makeparam$(SUFFIX)

makeparam$(SUFFIX): makeparam.F main.F
#
# MIND: I do not have a full dependency list for the include
# and MODULES: here are only the minimal basic dependencies
# if one strucuture is changed then touch_dep must be called
# with the corresponding name of the structure
#
base.o: base.inc base.F
mgrid.o: mgrid.inc mgrid.F
constant.o: constant.inc constant.F
lattice.o: lattice.inc lattice.F
setex.o: setexm.inc setex.F
pseudo.o: pseudo.inc pseudo.F
poscar.o: poscar.inc poscar.F
mkpoints.o: mkpoints.inc mkpoints.F
wave.o: wave.inc wave.F
nonl.o: nonl.inc nonl.F
nonlr.o: nonlr.inc nonlr.F

$(OBJ_HIGH):
        $(CPP)
        $(FC) $(FFLAGS) $(OFLAG_HIGH) $(INCS) -c $*$(SUFFIX)
$(OBJ_NOOPT):
        $(CPP)
        $(FC) $(FFLAGS) $(INCS) -c $*$(SUFFIX)

fft3dlib_f77.o: fft3dlib_f77.F
        $(CPP)
        $(F77) $(FFLAGS_F77) -c $*$(SUFFIX)

.F.o:
        $(CPP)
        $(FC) $(FFLAGS) $(OFLAG) $(INCS) -c $*$(SUFFIX)
.F$(SUFFIX):
        $(CPP)
$(SUFFIX).o:
        $(FC) $(FFLAGS) $(OFLAG) $(INCS) -c $*$(SUFFIX)

# special rules
#-----------------------------------------------------------------------
# these special rules are cummulative (that is once failed
#   in one compiler version, stays in the list forever)
# -tpp5|6|7 P, PII-PIII, PIV
# -xW use SIMD (does not pay of on PII, since fft3d uses double prec)
# all other options do no affect the code performance since -O1 is used

fft3dlib.o : fft3dlib.F
        $(CPP)
        $(FC) -FR -lowercase -O2 -c $*$(SUFFIX)
fft3dfurth.o : fft3dfurth.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

radial.o : radial.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

symlib.o : symlib.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

symmetry.o : symmetry.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

wave_mpi.o : wave_mpi.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

wave.o : wave.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

dynbr.o : dynbr.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

asa.o : asa.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

broyden.o : broyden.F
        $(CPP)
        $(FC) -FR -lowercase -O2 -c $*$(SUFFIX)

us.o : us.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -c $*$(SUFFIX)

LDApU.o : LDApU.F
        $(CPP)
        $(FC) -FR -lowercase -O2 -c $*$(SUFFIX)

更加详细的步骤见http://muchong.com/bbs/viewthread.php?tid=1399868&fpage=1
9楼2010-12-25 21:36:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

qlm2001

铁虫 (小有名气)


★ ★
小木虫: 金币+0.5, 给个红包,谢谢回帖
WDD880227: 金币+1, 多谢您的帮助 2012-05-11 09:09:59
引用回帖:
380819楼: Originally posted by hedge at 2010-11-29 16:29:59:
各位大虾,对VASP安装和编译问题,我实在感到迷茫。
论坛上的资料绝大多数是以VASP.4.6,vasp.4.lib,L_mkl_p_9.1.023,  
l_fc_pl_9.1.036为例,可能大多数是抄袭或直接引用过来。不排除按步就班,编译成功的。 ...

不知道你安装成功没有,我用的是 ubuntu的11.04版,并行安装成功了,如果你要是想用ubuntu的系统,我可以给你点帮助
10楼2012-05-10 15:43:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

qphll

金虫 (正式写手)


送鲜花一朵
引用回帖:
433835楼: Originally posted by Prettyswan at 2010-12-01 09:25:36:
我认为VASP的安装几乎与Linux的发行版无关,我在Ubuntu10.04(双核,奔D)上安装成功过,在Ubuntu10.10(四核,Intel)上也安装成功过,昨天刚刚在RHEL6(四核Intel)上安装成功VASP4.6。我是按照intel官方论坛上 ...

很好, 赞!
11楼2012-05-11 02:20:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 hedge 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[教师之家] 选择 +8 459582015 2024-05-31 11/550 2024-06-02 18:30 by auvauv
[硕博家园] 各位同学能否分享一下实验室的学生劳务发放标准呀? +19 ma3252788 2024-05-30 19/950 2024-06-02 18:15 by Lcy6666
[论文投稿] 希望嫡长子顺利出场! +3 C刊霸王 2024-05-31 4/200 2024-06-02 17:02 by kill_doc
[基金申请] 化学口B0109(高分子合成),拿青年基金一般需要怎样的文章水平? +14 salmon95 2024-05-30 23/1150 2024-06-02 16:37 by 款款飞
[基金申请] 为什么美国要封锁华为而不封锁丘C同呢? +6 zju2000 2024-06-02 7/350 2024-06-02 16:12 by sxjc500
[论文投稿] 选期刊 5+3 jfdhj 2024-05-29 4/200 2024-06-02 13:30 by bobvan
[基金申请] 三个评委收到的基金包里面的项目是相同的吗? +4 河马の史诗 2024-06-02 4/200 2024-06-02 13:18 by dxcharlary
[考博] 导师不让硕转博,让我去国外读博,能理解吗? +12 萧山幽谷 2024-05-29 20/1000 2024-06-02 12:01 by yuan0806
[基金申请] 2024杰青和万人领军什么时候会评 +3 墨香琴韵 2024-06-02 3/150 2024-06-02 10:31 by 摩天思瑞
[教师之家] 职能部门工作人员态度不好是普遍的吗?怎么让他们态度好一些? +4 河西夜郎 2024-06-01 4/200 2024-06-02 09:14 by 摩天思瑞
[硕博家园] 实验室太吵闹,无法安静学习,怎么办? +7 utahh 2024-05-31 12/600 2024-06-02 01:23 by dking22
[考博] 申请2024或2025年博士研究生 +5 嘟噜嘟1 2024-05-29 12/600 2024-06-01 22:36 by 嘟噜嘟1
[考研] 研0二导师分到新来的博士后靠谱吗 +7 sone9 2024-05-31 7/350 2024-06-01 19:10 by 梦燕园
[基金申请] B口人才项目 +9 WOWO159357 2024-05-29 19/950 2024-06-01 14:24 by linxuhuizj
[考博] 申博求助?本硕双非一篇三区和四区去985工科非天坑专业有没有希望? +4 LYS1200 2024-05-29 6/300 2024-06-01 08:50 by 学术渣渣神
[考博] 广东以理材料系碳点与功能材料课题组 — 2博士名额 / 科研助理 +4 小城夜很美 2024-05-27 11/550 2024-05-31 21:26 by 小城夜很美
[论文投稿] 纠结选哪一个期刊,电化学领域 50+8 Freya163 2024-05-28 10/500 2024-05-31 15:09 by wzykobe
[硕博家园] 求问endnote上Wiley引用格式在哪下载 +3 Elon. 2024-05-30 3/150 2024-05-31 10:13 by crazy peng
[文学芳草园] 对对子啊 +5 天若孤独 2024-05-29 7/350 2024-05-31 09:00 by wjykycg
[基金申请] E05青基有几个评审 +4 KYXY123 2024-05-28 4/200 2024-05-28 19:25 by popt2t
信息提示
请填处理意见