HPC

OpenMPI的安装

更多内容可以查看:https://docs.open-mpi.org/en/v5.0.x/installing-open-mpi/quickstart.html

  1. OpenMPI的下载及解压: 在OpenMPI官方主页找到合适版本的OpenMPI下载并解压
    wget https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.5.tar.gz
    tar xf openmpi-5.0.5.tar.gz
    cd openmpi-5.0.5
    
  2. 配置安装路径,编译并安装,安装路径自定义
    ./configure --prefix=/usr/local/openmpi
    make -j $(nproc) all
    make install
    
  3. 设置环境变量,路径为自己安装的路径
    MPI_HOME=/usr/local/openmpi
    export PATH=$MPI_HOME/bin:$PATH
    export LD_LIBRARY_PATH=$MPI_HOME/lib:$LD_LIBRARY_PATH
    export MANPATH=${MPI_HOME}/share/man:$MANPATH