计算化学公社

 找回密码 Forget password
 注册 Register
Views: 875|回复 Reply: 6
打印 Print 上一主题 Last thread 下一主题 Next thread

[Linux] How to correctly and safely install OpenMPI ?

[复制链接 Copy URL]

6

帖子

0

威望

69

eV
积分
75

Level 2 能力者

跳转到指定楼层 Go to specific reply
楼主
Hello,
Definitely and there is no doubt OpenMPI is necessary for parallel computing in Linux OS. I entend to use Orca and Multiwfn in Linux, and i would like to know what is the correct and safe procedure to install OpenMPI.

Thanks in advance for your replies and any help.

206

帖子

0

威望

2245

eV
积分
2451

Level 5 (御坂)

2#
发表于 Post on 2023-10-21 00:33:22 | 只看该作者 Only view this author
Here is a post from Sobevera explaining how to set up orca and install openmpi: http://bbs.keinsci.com/thread-11697-1-1.html

6万

帖子

99

威望

5万

eV
积分
120081

管理员

公社社长

3#
发表于 Post on 2023-10-21 05:37:28 | 只看该作者 Only view this author
Just follow Section 2.1 of my post mentioned in 2#
北京科音自然科学研究中心http://www.keinsci.com)致力于计算化学的发展和传播,长期开办极高质量的各种计算化学类培训:初级量子化学培训班中级量子化学培训班高级量子化学培训班量子化学波函数分析与Multiwfn程序培训班分子动力学与GROMACS培训班CP2K第一性原理计算培训班,内容介绍以及往届资料购买请点击相应链接查看。这些培训是计算化学从零快速入门以及进一步全面系统性提升研究水平的高速路!培训各种常见问题见《北京科音办的培训班FAQ》
欢迎加入北京科音微信公众号获取北京科音培训的最新消息,并避免错过网上有价值的计算化学文章!
欢迎加入人气极高、专业性特别强的理论与计算化学综合交流群思想家公社QQ群(群号见此链接),合计达一万多人。北京科音培训班的学员在群中可申请VIP头衔,提问将得到群主Sobereva的最优先解答。
思想家公社的门口Blog:http://sobereva.com(发布大量原创计算化学相关博文)
Multiwfn主页:http://sobereva.com/multiwfn(十分强大、极为流行的量子化学波函数分析程序)
Google Scholar:https://scholar.google.com/citations?user=tiKE0qkAAAAJ
ResearchGate:https://www.researchgate.net/profile/Tian_Lu

4103

帖子

4

威望

8862

eV
积分
13045

Level 6 (一方通行)

MOKIT开发者

4#
发表于 Post on 2023-10-21 07:52:15 | 只看该作者 Only view this author
I've written a tutorial (in Chinese).

自动做多参考态计算的程序MOKIT

418

帖子

4

威望

2910

eV
积分
3408

Level 5 (御坂)

5#
发表于 Post on 2023-10-21 18:06:47 | 只看该作者 Only view this author
本帖最后由 万里云 于 2023-10-21 18:09 编辑

Download the source code of OpenMPI which matches the requirements of ORCA binary, unpack it with
  1. tar -xf openmpi-X.X.X.tar.gz
复制代码
or
  1. tar -xf openmpi-X.X.X.tar.bz2
复制代码
depending on the format of the source code you have downloaded. Then cd into the source code directory and run configure
  1. export CC=icc
  2. export CXX=icpc
  3. export FC=ifort

  4. export CFLAGS=-O2
  5. export CXXFLAGS=-O2
  6. export FCFLAGS=-O2

  7. ./configure \
  8. --prefix=$HOME/soft/openmpi-X.X.X \
  9. --enable-mpi-fortran=yes --enable-mpi-cxx=yes --enable-mpi-java=no \
  10. --enable-wrapper-rpath=yes --enable-cxx-exceptions=yes \
  11. --enable-shared=yes --enable-static=yes
复制代码
Note here we have utilized Intel Compilers to compile OpenMPI. You can also use GCC by
  1. export CC=gcc
  2. export CXX=g++
  3. export FC=gfortran
复制代码
After the configuration succeeds, build OpenMPI with
  1. make
复制代码
followed by testing the build
  1. make check
复制代码
If everything goes well, you can install it with
  1. make install
复制代码
OpenMPI will be installed to $HOME/soft/openmpi-X.X.X. After installation, update the environment variabls in ~/.bashrc such that openmpi will be available
  1. export PATH=$HOME/soft/openmpi-X.X.X/bin:$PATH
  2. export LD_LIBRARY_PATH=$HOME/soft/openmpi-X.X.X/lib:$LD_LIBRARY_PATH
复制代码
If you have multiple versions of MPI installed on your server, try Environment Modules for elegantly switching between different versions.

6

帖子

0

威望

69

eV
积分
75

Level 2 能力者

6#
 楼主 Author| 发表于 Post on 2023-10-29 18:43:24 | 只看该作者 Only view this author
sobereva 发表于 2023-10-21 05:37
Just follow Section 2.1 of my post mentioned in 2#

Thank you all very much for your valuable replies, and i just have one more question.
I downloaded  the latest version of ORCA "ORCA 5.0.4", and they mentioned the version of openmpi as 4.1.1, does it hurt if i installed the latest version of openmpi  which is the version 5.0.0 ?  

910

帖子

1

威望

7873

eV
积分
8803

Level 6 (一方通行)

7#
发表于 Post on 2023-10-29 21:01:44 | 只看该作者 Only view this author
Joao.T 发表于 2023-10-29 18:43
Thank you all very much for your valuable replies, and i just have one more question.
I downloade ...

Yes. 5.0.0 does not work.

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2025-8-13 06:32 , Processed in 0.157980 second(s), 20 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list