24小时热门版块排行榜    

查看: 1453  |  回复: 7

vv_china

铜虫 (小有名气)

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

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

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的回帖

vv_china

铜虫 (小有名气)

引用回帖:
4楼: Originally posted by 后天一 at 2011-09-02 16:25:18:
在没有开源以前用过pathscale编译,记得当时出错了。
不知道这个版本是否可以~
既然你知道怎么用ifort和mpich编译abinit,那么这个也是一样的啊。
大概步骤是这样的,安装好pathscale后,在环境变量文件.bashr ...

谢谢指导。我是用pathscale编译openmpi的时候出错。configure到pathcc就报错了,可能环境变量没搞好吧。但是我把路径什么的都加入了呀。。。
5楼2011-09-02 20:19:31
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

后天一

木虫 (小有名气)

我们的自由!

★ ★
zzy870720z(金币+2): 谢谢指点 2011-09-03 17:12:32
不好意思,我刚装了pathscale,初步测试如下,你试试
export CC=pathcc
export CXX=pathCC
export F77=pathf90
export FC=pathf90
./configure  --host=x86_64-redhat-linux

其中host参数是导致configure错误的原因,你的host后面的参数可以通过gcc -v查询

你再试试
6楼2011-09-02 22:11:53
已阅   回复此楼   关注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的回帖

vv_china

铜虫 (小有名气)

★ ★
zzy870720z(金币+2): 谢谢分享经验 2011-10-10 09:29:27
已经知道原因:pathscale的免费版ekopath对abinit支持不好,存在bug。
8楼2011-10-10 01:13:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 vv_china 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[教师之家] 导师吐槽:我怎么摊上了这么个极品研究生! +7 苏东坡二世 2026-08-23 7/350 2026-08-27 18:14 by 瞬息宇宙
[基金申请] 基金不中,共勉 +10 eulota 2026-08-26 10/500 2026-08-27 17:23 by lqllinqiaoli
[基金申请] 国自然面上复盘~欢迎讨论 (金币+5) +10 晴天加油 2026-08-26 11/550 2026-08-27 16:35 by msuhlx
[基金申请] 看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉…… +5 a089 2026-08-26 6/300 2026-08-27 14:05 by jonewore
[文学芳草园] 梦想 +3 myrtle 2026-08-26 3/150 2026-08-27 10:01 by angelyueyi
[基金申请] 为什么 国际(地区)合作与交流项目 没有放榜? 10+3 majunge000 2026-08-26 11/550 2026-08-27 08:42 by 北京莱茵编辑
[基金申请] 让我中一个面上吧! +13 大萍1987 2026-08-20 17/850 2026-08-27 08:20 by 大萍1987
[教师之家] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 LIbGuocjEEYw 2026-08-26 4/200 2026-08-27 04:33 by Ie9AyIAvGbvs
[基金申请] 怎么查啊 +5 huang1991js 2026-08-26 5/250 2026-08-26 16:09 by Equinoxhua
[基金申请] 2026年8月25日国自然放榜前突然收到列入评审专家邮件,有关系吗? +25 木水思豆 2026-08-25 28/1400 2026-08-26 14:53 by draco1987
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 哪位高人中了,把查询到的截图贴出来让我看看,让我长长见识 +4 yuleib84 2026-08-26 5/250 2026-08-26 13:40 by yuleib84
[基金申请] 为什么国自然不能直接公布 +4 bjdxyxy 2026-08-26 4/200 2026-08-26 13:12 by qingmu1201
[基金申请] 系统进不去 +4 yanglien 2026-08-26 5/250 2026-08-26 11:10 by wenfengw83
[基金申请] 国合现在查不到了吗? +10 chengyan1220 2026-08-24 20/1000 2026-08-26 08:57 by peasantsprig
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
[基金申请] 如果此刻你正在为国基感到焦虑,不妨来听听这首《基金之外》 +8 scalable 2026-08-24 8/400 2026-08-25 12:52 by jnhyjjm
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
[基金申请] 建议基金发布提前给出明确的时间点 +13 kulium 2026-08-21 16/800 2026-08-24 16:27 by superceng
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
信息提示
请填处理意见