Skip to content

Commit

Permalink
#5 using openmpi for pgi
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmeier25 authored Jul 7, 2024
1 parent 1b9210c commit 6779f9f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Open MPI
- name: Install Open MPI for PGI
run: |
sudo apt update
sudo apt install -y libopenmpi-dev openmpi-bin
echo "OPENMPI_DIR=/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV
echo "PATH=$PATH:/usr/lib/x86_64-linux-gnu/bin" >> $GITHUB_ENV
wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.5.tar.gz
tar -xzf openmpi-4.0.5.tar.gz
cd openmpi-4.0.5
./configure --prefix=/usr/local/openmpi-4.0.5 --with-pgi=/opt/nvidia/hpc_sdk/Linux_x86_64/20.7
make all
sudo make install
echo "OPENMPI_DIR=/usr/local/openmpi-4.0.5" >> $GITHUB_ENV
echo "PATH=/usr/local/openmpi-4.0.5/bin:$PATH" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/local/openmpi-4.0.5/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
- name: Install NVIDIA HPC SDK (PGI Compiler)
run: |
Expand Down

0 comments on commit 6779f9f

Please sign in to comment.