24小时热门版块排行榜    

Znn3bq.jpeg
汕头大学海洋科学接受调剂
查看: 2003  |  回复: 23

心宁

金虫 (正式写手)

[求助] Vasp 5.2 lib编辑错误 求达人指点 谢谢 已有3人参与

/opt/intel/Compiler/11.1/073/bin/intel64/ifort -I/opt/intel/mkl/10.2.6.038/include/fftw -FR -lowercase -assume byterecl -O3 -align -xT -FRDOBJ  -c drdatab.f
ifort: command line warning #10156: ignoring option '-F'; no argument required
drdatab.f(5): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
drdatab.f(6): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
drdatab.f(82): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      REAL(q)            FLTRES(*)
-----------^
drdatab.f(83): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      COMPLEX(q)         CMPRES(*)
--------------^
compilation aborted for drdatab.f (code 1)
make: *** [drdatab.o] Error 1
---------------------------------------------makefile 如下-------------按照网上说的做了好久 其他都都编辑安装过了 到vasp卡住了------------------------------------------------------------------------------
.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     = icc -E -P -C $*.F >$*.f
FC=ifort

#CFLAGS = -O
#FFLAGS = -O0 -FI


CPP = /opt/intel/Compiler/11.1/073/bin/icc -E -P -C $*.F >$*.f
#CC= /opt/intel/cce/10.1.018/bin/icc
CC= /opt/intel/Compiler/11.1/073/bin/intel64/icc
#FC= /opt/intel/Compiler/11.0/074/bin/intel64/ifort
FC= /opt/intel/Compiler/11.1/073/bin/intel64/ifort
CFLAGS = -O
OFLAGS = -O3 -align -xT
FFLAGS =  -I/opt/intel/mkl/10.2.6.038/include/fftw -FR -lowercase -assume byterecl $(OFLAGS)

#FREE   =  -FR
FREE   =  -FRDOBJ

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
回复此楼

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

» 猜你喜欢

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

志存高远须积厚流广-坚持不懈定斗转星移!
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

chuanghua304

禁虫 (职业作家)


感谢参与,应助指数 +1
liliangfang: 金币+1, 谢谢交流 2014-08-11 07:54:42
本帖内容被屏蔽

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

chuanghua304

禁虫 (职业作家)

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
liliangfang: 金币+1, 谢谢交流 2014-08-11 07:54:51
心宁: 金币+10, ★★★很有帮助, 我感觉没有什么错误了啊 跟4.6一样编译的 结果就是不行 哎 2014-08-11 21:49:23
本帖内容被屏蔽

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

心宁

金虫 (正式写手)

送红花一朵
好的 我慢慢试试吧 谢谢您
志存高远须积厚流广-坚持不懈定斗转星移!
4楼2014-08-10 20:30:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

心宁

金虫 (正式写手)

source /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh intel64
source /opt/intel/composer_xe_2011_sp1.11.339/bin/ifortvars.sh intel64
source /opt/intel/composer_xe_2011_sp1.11.339/bin/iccvars.sh intel64

这三个是写在.bashrc里面

最后一个是干啥的呢 没有看懂 是在root目录下终端输入么? 谢谢哈
export LD_LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.11.339/compiler/lib/intel64:$LD_LIBRARY_PATH
志存高远须积厚流广-坚持不懈定斗转星移!
5楼2014-08-10 20:40:14
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jerkwin

专家顾问 (正式写手)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
liliangfang: 金币+2, 谢谢交流 2014-08-11 07:55:22
心宁: 金币+20, ★★★很有帮助, 这个网站挺好的 正参考 还不知道结果如何 2014-08-11 21:48:15
6楼2014-08-11 05:29:24
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

magicmonk

至尊木虫 (著名写手)

引用回帖:
6楼: Originally posted by jerkwin at 2014-08-11 05:29:24
http://jerkwin.github.io/2014/05/19/VASP.5.2.12%E7%BC%96%E8%AF%91-Intel-Fortran+MPI+MKL/

我是按您的这篇文章编译的5.3.5,但是还是有一点不同
您的makefile里没有写关于SCA的路径,如果那样的话,我是会出现错误的,加上了就没事
还有一直不明白编译lib的时候为何要将ifc改成mpiifort,网上一般都是改成ifort,不知是否有什么不同
我们最深的恐惧不是我们能力不够,我们最深的恐惧是能力超越了极限。
7楼2014-08-11 08:26:33
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

心宁

金虫 (正式写手)

[root@localhost vasp.5.lib]# make
ifort -O0 -FI -FR  -c drdatab.f
drdatab.f(5): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
drdatab.f(6): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
drdatab.f(82): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      REAL(q)            FLTRES(*)
-----------^
drdatab.f(83): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      COMPLEX(q)         CMPRES(*)
--------------^
compilation aborted for drdatab.f (code 1)
make: *** [drdatab.o] Error 1


试了好多次 就是不行 哎  给.bashrc贴出来看看

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
source /opt/intel/Compiler/11.1/073/bin/intel64/ifortvars_intel64.sh
source /opt/intel/Compiler/11.1/073/bin/intel64/iccvars_intel64.sh
source /opt/intel/mkl/10.2.6.038/tools/environment/mklvarsem64t.sh
#./opt/intel/Compiler/11.1/073/bin/ifortvars.sh
#./opt/intel/Compiler/11.1/073/mkl/tools/environment/mklvars32.sh
# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
export PATH=$PATH:/opt/intel/Compiler/11.1/073/bin/intel64:/opt/intel/Compiler/11.1/073/bin/ifortvars.sh
export LD_LIBRARY=$LD_LIBRARY:/opt/intel/mkl/10.2.6.038/lib/em64t
export LIBRARY=$LIBRARY:/opt/intel/Compiler/11.1/073/lib/intel64
~
志存高远须积厚流广-坚持不懈定斗转星移!
8楼2014-08-11 22:00:59
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

卡开发发

专家顾问 (著名写手)

Ab Initio Amateur

引用回帖:
7楼: Originally posted by magicmonk at 2014-08-11 08:26:33
我是按您的这篇文章编译的5.3.5,但是还是有一点不同
您的makefile里没有写关于SCA的路径,如果那样的话,我是会出现错误的,加上了就没事
还有一直不明白编译lib的时候为何要将ifc改成mpiifort,网上一般都是改 ...

貌似老版本(可能是10以前)的intel fortran的是ifc,之后的是ifort。

SCA的部分的库其实写到BLAS或LAPACK下然后这里空出来也可以。不过LZ这里不涉及这个问题,因为只是编译lib。
不一定挂在论坛,计算问题问题欢迎留言。
9楼2014-08-12 07:02:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

卡开发发

专家顾问 (著名写手)

Ab Initio Amateur

环境变量的部分别这么写,你试试这个:
source /opt/intel/Compiler/11.1/073/bin/ifortvars.sh intel64
source /opt/intel/Compiler/11.1/073/bin/iccvars.sh intel64
source /opt/intel/mkl/10.0.2.018/tools/environment/mklvarsem64t.sh

lib编译的部分cpp的部分就用gcc好了。
不一定挂在论坛,计算问题问题欢迎留言。
10楼2014-08-12 07:07:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 心宁 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 材料复试求调剂 +24 xhhdjdjsjks 2026-04-09 24/1200 2026-04-13 15:49 by 幸免 ..
[教师之家] 转长聘了 +3 简单化xn 2026-04-13 3/150 2026-04-13 14:18 by wwwkkk83
[考研] +10 李多米lee. 2026-04-12 11/550 2026-04-12 22:58 by yuyin1233
[考研] 344 材料专业 求调剂211 无地域要求 +8 hualkop 2026-04-11 8/400 2026-04-12 22:24 by fqwang
[教师之家] 山东双非院校考核超级无底线,领导幸灾乐祸,教师遭殃恐 +3 qut2026 2026-04-11 7/350 2026-04-12 20:24 by qut2026
[考研] 22408 352分求调剂 +5 努力的夏末 2026-04-09 5/250 2026-04-12 19:17 by wj165256
[考研] 化学工程调剂289 +44 yang婷 2026-04-07 50/2500 2026-04-12 02:36 by 秋豆菜芽
[考研] 22408调剂315分 +3 zhuangyan123 2026-04-09 3/150 2026-04-12 00:25 by 蓝云思雨
[考研] 0860004 求调剂 309分 +9 Yin DY 2026-04-08 9/450 2026-04-11 22:55 by dongdian1
[考研] 085600材料与化工329分求调剂 +16 叶zilin 2026-04-10 16/800 2026-04-11 11:04 by may_新宇
[考研] 080100力学316求调剂 +8 L_Hairui 2026-04-07 8/400 2026-04-11 10:00 by zhq0425
[考研] 一志愿211,化学310分,本科重点双非,求调剂 +23 努力奋斗112 2026-04-08 23/1150 2026-04-10 23:29 by 314126402
[考研] 一志愿北理工298英一数二已上岸,感谢各位老师 +14 Reframe 2026-04-10 16/800 2026-04-10 23:07 by caotw2020
[考研] 一志愿矿大,材料工程专硕314分,0856可调都可以 +15 无懈可击的巨人 2026-04-09 15/750 2026-04-10 18:10 by hmn_wj
[考研] 机械专368 有去处吗 +4 种大树 2026-04-10 4/200 2026-04-10 15:31 by jiajinhpu
[考研] 青岛科技大学材料学院,环境学院调剂补录4月10日以前都可以 +3 1青科大。 2026-04-09 5/250 2026-04-10 09:58 by 翩翩一书生
[考研] 调剂 +12 月@163.com 2026-04-08 12/600 2026-04-09 14:27 by rl1980
[考研] 311求调剂 +6 surte 2026-04-08 13/650 2026-04-09 14:00 by surte
[考研] 296求调剂 +3 汪!?! 2026-04-08 3/150 2026-04-08 22:00 by zhouyuwinner
[考研] 电子信息346 +4 zuoshaodian 2026-04-08 4/200 2026-04-08 11:54 by zzucheup
信息提示
请填处理意见