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: |