24小时热门版块排行榜    

查看: 2006  |  回复: 11

gaarakingBMY

铜虫 (初入文坛)

[求助] vasp编译 已有2人参与

系统:CentOS6.5
编译器:ifort2011.6.233
并行环境: openmpi1.4.4

    vasp版本 :vasp5.2.11
    fftw库:3.3.4
    我的问题是:
    1. 我需要安装mkl数学库么?但是 我查了下 mkl 显示如附图,不知ifort是否自带了mkl数据库?
    2.编译vasPlib时 出下如下问题 不知是为何?
    附上我的 makefile:
    .SUFFIXES: .inc .f .F
    #-----------------------------------------------------------------------
    # Makefile for Portland Group F90/HPF compiler
    # the makefile was tested only under Linux on Intel platforms
    # however it might work on other platforms as well
    #
    # this release of vasp.4.lib contains lapack v2.0
    # this can be compiled with pgf90 compiler if the option -O1 is used
    #
    # Mind: one user reported that he had to copy preclib.F diolib.F
    #  dlexlib.F and drdatab.F to the directory vasp.4.4, compile the files
    #  there and link them directly  into vasp
    #  for no obvious reason these files could not be linked from the library
    #
    #-----------------------------------------------------------------------

    # C-preprocessor
    CPP     = gcc -E -P -C $*.F >$*.f
    FC=ifort

    CFLAGS = -O
    FFLAGS = -O0 -FI
    FREE   =  -FR

    DOBJ =  preclib.o timing_.o derrf_.o dclock_.o  diolib.o dlexlib.o drdatab.o


    #-----------------------------------------------------------------------
    # general rules
    #-----------------------------------------------------------------------

    libdmy.a: $(DOBJ) lapack_double.o linpack_double.o lapack_atlas.o
            -rm libdmy.a
            ar vq libdmy.a $(DOBJ)

    # files which do not require autodouble
    lapack_min.o: lapack_min.f
            $(FC) $(FFLAGS) $(NOFREE) -c lapack_min.f
    lapack_double.o: lapack_double.f
            $(FC) $(FFLAGS) $(NOFREE) -c lapack_double.f
    lapack_single.o: lapack_single.f
            $(FC) $(FFLAGS) $(NOFREE) -c lapack_single.f
    lapack_atlas.o: lapack_atlas.f
            $(FC) $(FFLAGS) $(NOFREE) -c lapack_atlas.f
    linpack_double.o: linpack_double.f
            $(FC) $(FFLAGS) $(NOFREE) -c linpack_double.f
    linpack_single.o: linpack_single.f
            $(FC) $(FFLAGS) $(NOFREE) -c linpack_single.f

    .c.o:
            $(CC) $(CFLAGS) -c $*.c
    .F.o:
            $(CPP)
            $(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f
    .F.f:
            $(CPP)
    .f.o:
            $(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f

    请高人指教下 谢谢.

    vasp编译
    图片1.png


    vasp编译-1
    图片2.png
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
回帖支持 ( 显示支持度最高的前 50 名 )

liliangfang

荣誉版主 (著名写手)

引用回帖:
10楼: Originally posted by gaarakingBMY at 2014-09-01 14:43:43
没找着。。。能麻烦你发一份么?拜托了><...

http://muchong.com/bbs/viewthread.php?tid=7282219&fpage=1
11楼2014-09-02 07:40:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通回帖

yyyu200

金虫 (小有名气)

【答案】应助回帖

感谢参与,应助指数 +1
这个文件转换有问题
cp preclib.F preclib.f
make
2楼2014-08-04 10:11:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gaarakingBMY

铜虫 (初入文坛)

引用回帖:
2楼: Originally posted by yyyu200 at 2014-08-04 10:11:53
这个文件转换有问题
cp preclib.F preclib.f
make

这个 我知道是转换有问题 也试过 把preclib.F 复制成preclib.f 然后继续编译 不过后面还是会有新的无法编译的文件。如图所示。  还有 就是前面那个mkl 问题能解答下么?
vasp编译-2
图片3.png

3楼2014-08-04 10:33:31
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yyyu200

金虫 (小有名气)

【答案】应助回帖


gaarakingBMY: 金币+1, 有帮助, 能更详细些么。谢谢您的帮助。 2014-08-04 14:55:15
一样的
cp diolib.F diolib.f
make

编译vasp.5.lib不需要mkl
vasp.5.2 makefile中有详细的说明
4楼2014-08-04 10:57:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gaarakingBMY

铜虫 (初入文坛)

root@localhost vasp.5.lib]# make -f makefile.linux_ifc_P4_zxfang
ifort -O0 -FI -FR  -c preclib.f
cc -O -c timing_.c
cc -O -c derrf_.c
cc -O -c dclock_.c
gcc -E -P -C diolib.F >diolib.f
gcc: error trying to exec 'f951': execvp: No such file or directory
make: *** [diolib.o] Error 1
[root@localhost vasp.5.lib]# cp diolib.F diolib.f
cp: overwrite `diolib.f'? y
[root@localhost vasp.5.lib]# make -f makefile.linux_ifc_P4_zxfang
ifort -O0 -FI -FR  -c diolib.f
gcc -E -P -C dlexlib.F >dlexlib.f
gcc: error trying to exec 'f951': execvp: No such file or directory
make: *** [dlexlib.o] Error 1
[root@localhost vasp.5.lib]# cp dlexlib.F diolib.f
cp: overwrite `diolib.f'? y
[root@localhost vasp.5.lib]# make -f makefile.linux_ifc_P4_zxfang
ifort -O0 -FI -FR  -c diolib.f
diolib.f(6): warning #5117: Bad # preprocessor line
#ifdef LONGCHAR
-^
diolib.f(13): warning #5117: Bad # preprocessor line
#endif
-^
diolib.f(19): warning #5117: Bad # preprocessor line
#ifdef LONGCHAR
-^
diolib.f(23): warning #5117: Bad # preprocessor line
#else
-^
diolib.f(26): warning #5117: Bad # preprocessor line
#endif
-^
diolib.f(30): warning #5117: Bad # preprocessor line
#ifdef LONGCHAR
-^
diolib.f(184): warning #5117: Bad # preprocessor line
#endif
-^
diolib.f(24): error #6205: This object has already been SAVEd.   [B5]
      SAVE            B5,B6,B7,B8
----------------------^
diolib.f(24): error #6205: This object has already been SAVEd.   [B6]
      SAVE            B5,B6,B7,B8
-------------------------^
diolib.f(24): error #6205: This object has already been SAVEd.   [B7]
      SAVE            B5,B6,B7,B8
----------------------------^
diolib.f(24): error #6205: This object has already been SAVEd.   [B8]
      SAVE            B5,B6,B7,B8
-------------------------------^
diolib.f(288): warning #5117: Bad # preprocessor line
#ifdef LONGCHAR
-^
diolib.f(290): warning #5117: Bad # preprocessor line
#else
-^
diolib.f(292): warning #5117: Bad # preprocessor line
#endif     
-^
diolib.f(337): warning #5117: Bad # preprocessor line
#ifdef LONGCHAR
-^
diolib.f(339): warning #5117: Bad # preprocessor line
#else
-^
diolib.f(341): warning #5117: Bad # preprocessor line
#endif
-^
diolib.f(291): error #6418: This name has already been assigned a data type.   [BUFFER]
      CHARACTER*255 BUFFER,FORM,NUMBER,DUMMY
--------------------^
diolib.f(291): error #6418: This name has already been assigned a data type.   [FORM]
      CHARACTER*255 BUFFER,FORM,NUMBER,DUMMY
---------------------------^
diolib.f(291): error #6418: This name has already been assigned a data type.   [NUMBER]
      CHARACTER*255 BUFFER,FORM,NUMBER,DUMMY
--------------------------------^
diolib.f(291): error #6418: This name has already been assigned a data type.   [DUMMY]
      CHARACTER*255 BUFFER,FORM,NUMBER,DUMMY
---------------------------------------^
compilation aborted for diolib.f (code 1)
make: *** [diolib.o] Error 1
[root@localhost vasp.5.lib]#
问题还是会出现。。。 我说的就是这个会被中止(aborted),总觉得这样治标不治本,以前都不会出现这种问题。
5楼2014-08-04 14:54:05
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

liliangfang

荣誉版主 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
本板块有很多编译帖子的,为什么不搜索一下呢
我以前用gotoblas编译的
http://muchong.com/bbs/viewthread.php?tid=3753433
需要mkl的话可以看zhangguangping的帖子
6楼2014-08-06 07:43:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gaarakingBMY

铜虫 (初入文坛)

引用回帖:
6楼: Originally posted by liliangfang at 2014-08-06 07:43:03
本板块有很多编译帖子的,为什么不搜索一下呢
我以前用gotoblas编译的
http://muchong.com/bbs/viewthread.php?tid=3753433
需要mkl的话可以看zhangguangping的帖子

好的 ,非常感谢您。
7楼2014-08-06 09:37:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gaarakingBMY

铜虫 (初入文坛)

引用回帖:
6楼: Originally posted by liliangfang at 2014-08-06 07:43:03
本板块有很多编译帖子的,为什么不搜索一下呢
我以前用gotoblas编译的
http://muchong.com/bbs/viewthread.php?tid=3753433
需要mkl的话可以看zhangguangping的帖子

您好 请问你有vasp赝势库传一份给我好么?谢谢了、
8楼2014-09-01 00:30:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

liliangfang

荣誉版主 (著名写手)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★
gaarakingBMY: 金币+9, ★★★很有帮助 2014-09-01 14:41:59
引用回帖:
8楼: Originally posted by gaarakingBMY at 2014-09-01 00:30:37
您好 请问你有vasp赝势库传一份给我好么?谢谢了、...

论坛里面有啊 你自己搜
9楼2014-09-01 07:45:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gaarakingBMY

铜虫 (初入文坛)

引用回帖:
9楼: Originally posted by liliangfang at 2014-09-01 07:45:58
论坛里面有啊 你自己搜...

没找着。。。能麻烦你发一份么?拜托了><
10楼2014-09-01 14:43:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 gaarakingBMY 的主题更新
信息提示
请填处理意见