Skip to content

Instantly share code, notes, and snippets.

@1duo
Last active December 18, 2023 17:09
Show Gist options
  • Save 1duo/15a4edb19b0d686fa40eae0593d2c8eb to your computer and use it in GitHub Desktop.
Save 1duo/15a4edb19b0d686fa40eae0593d2c8eb to your computer and use it in GitHub Desktop.
Install OpenMPI from source on CentOS7 with CUDA support.

Download OpenMPI from https://www.open-mpi.org

wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.0.tar.gz
wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.2.tar.gz

Unzip and run configurations with CUDA

tar -xzf openmpi-*.tar.gz && cd openmpi-*
./configure --with-cuda

Install

make -j$(nproc) 
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment