24小时热门版块排行榜    

查看: 1216  |  回复: 7
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

vv_china

铜虫 (小有名气)

[求助] 如何用pathscale + openmpi 编译Abinit?

在abinit.org上看用pathscale编译的运行成绩挺好的,正好pathscale开源了,想试试看效率怎么样。谁知道怎么编译?我知道openmpi+gcc或ifort+mpich编译,但是pathscale 安装后不知道怎么下手。
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

vv_china

铜虫 (小有名气)

引用回帖:
6楼: Originally posted by 后天一 at 2011-09-02 22:11:53:
不好意思,我刚装了pathscale,初步测试如下,你试试
export CC=pathcc
export CXX=pathCC
export F77=pathf90
export FC=pathf90
./configure  --host=x86_64-redhat-linux

其中host参数是导致configure ...

谢谢你的建议。

我试着按照你的设置,但还是有错。错误信息如下:
*** Fortran 77 compiler
checking for x86_64-redhat-linux-gfortran... pathf90
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether pathf90 accepts -g... yes
checking if Fortran 77 compiler works... links (cross compiling)
checking pathf90 external symbol convention... link: invalid option -- d
Try `link --help' for more information.
link: invalid option -- d
Try `link --help' for more information.
link: invalid option -- d
Try `link --help' for more information.
link: invalid option -- d
Try `link --help' for more information.
link: invalid option -- d
Try `link --help' for more information.
configure: error: Could not determine Fortran naming convention.

我试着把link移除,这个错误没有了,但是出现新的错误:
*** Fortran 77 compiler
checking for x86_64-redhat-linux6E-gfortran... pathf95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether pathf95 accepts -g... yes
checking if Fortran 77 compiler works... links (cross compiling)
checking pathf95 external symbol convention... single underscore
checking if C and Fortran 77 are link compatible... yes
checking to see if F77 compiler likes the C++ exception flags... skipped (no C++ exceptions flags)
checking if Fortran 77 compiler supports LOGICAL... yes
checking size of Fortran 77 LOGICAL... configure: error: Can not determine size of LOGICAL when cross-compiling
。。。
如果直接用gcc、gfortran就没有这些问题。。。我想可能还是环境变量没设置好?
7楼2011-09-07 20:38:05
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 8 个回答

beyondstar

木虫 (正式写手)

引用回帖:
1楼: Originally posted by vv_china at 2011-08-30 20:46:14:
在abinit.org上看用pathscale编译的运行成绩挺好的,正好pathscale开源了,想试试看效率怎么样。谁知道怎么编译?我知道openmpi+gcc或ifort+mpich编译,但是pathscale 安装后不知道怎么下手。

能介绍一下pathscale如何安装吗
2楼2011-09-01 23:36:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

vv_china

铜虫 (小有名气)

引用回帖:
2楼: Originally posted by beyondstar at 2011-09-01 23:36:30:
能介绍一下pathscale如何安装吗

在官网上下载ekopath-xxxx-installer.run的文件,直接运行安装的,安装的目录按照默认路径。
3楼2011-09-02 13:01:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

后天一

木虫 (小有名气)

我们的自由!

【答案】应助回帖

★ ★
vv_china(金币+50): 10 2011-09-02 20:15:50
zzy870720z(金币+2): 谢谢指教 2011-09-03 17:12:17
在没有开源以前用过pathscale编译,记得当时出错了。
不知道这个版本是否可以~
既然你知道怎么用ifort和mpich编译abinit,那么这个也是一样的啊。
大概步骤是这样的,安装好pathscale后,在环境变量文件.bashrc中export相关路径,然后用pathscale编译openmpi,然后用abinit,过程总可能涉及到相关的库文件,尽量用pathscale编译,然后试试看!
4楼2011-09-02 16:25:18
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见