加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Quantum Espresso 并行编译

(2015-04-13 07:05:17)
标签:

杂谈

并行编译有几个关键:

1. 必须让并行编译器比如openmpi与所用的FORTRAN/C编译器一致;比如,ubuntu下,通过软件中心安装openmpi,其默认的FORTRAN/C编译器是GFORTRAN/GCC,而不是INTEL的ifort/icc,因此,如果后面需要使用intel编译器,必须卸载openmpi,改用手工方式重新编译openmpi, 即:

shell$ ./configure CC=icc CXX=icpc F77=ifort FC=ifort ...
shell$ make all install

Note that you can include additional parameters to configure, implied by the "..." clause in the example above.

In particular, 4 switches on the configure command line are used to specify the compiler suite:

CC: Specifies the C compiler
CXX: Specifies the C++ compiler
F77: Specifies the Fortran 77 compiler
FC: Specifies the Fortran 90 compiler

 

2. Espresso配置(./confogure)完成后,查看make.sys,确保并行编译器,所选的FORTRAN/C编译器一致。否则,可用如下命令指定:

shell$ ./configure CC=icc CXX=icpc F77=ifort FC=ifort ... 
shell$ make all

 

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有