From 6779f9fd861dfa81bb6d59a4fd33d0b8b475d599 Mon Sep 17 00:00:00 2001 From: Nate <124332413+ndmeier25@users.noreply.github.com> Date: Sun, 7 Jul 2024 17:06:47 -0400 Subject: [PATCH] #5 using openmpi for pgi --- .github/workflows/cmake.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index a3ce183..d4e3796 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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: |