Ubuntu 22.04 Open MPIをインストールする方法
環境
OSバージョンを確認します
# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
操作方法
1.パッケージリストを更新します
# sudo apt-get update
2.Open MPIをインストールします
# sudo apt-get -y install openmpi-bin
3.Open MPIのバージョンを確認します
# mpiexec --version mpiexec (OpenRTE) 4.1.2 Report bugs to http://www.open-mpi.org/community/help/
4.「mpiexec」コマンドの使い方
# mpiexec --version mpiexec (OpenRTE) 4.1.2 Report bugs to http://www.open-mpi.org/community/help/ root@arkgame:/home/arte# mpiexec --help -------------------------------------------------------------------------- mpiexec cannot provide the help message when run as root. Running as root is *strongly* discouraged as any mistake (e.g., in defining TMPDIR) or bug can result in catastrophic damage to the OS file system, leaving your system in an unusable state. We strongly suggest that you run mpiexec as a non-root user. You can override this protection by adding the --allow-run-as-root option to the cmd line or by setting two environment variables in the following way: the variable OMPI_ALLOW_RUN_AS_ROOT=1 to indicate the desire to override this protection, and OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 to confirm the choice and add one more layer of certainty that you want to do so. We reiterate our advice against doing so - please proceed at your own risk. --------------------------------------------------------------------------