Add error checks for builds enabling f-functions with GPU targets requiring legacy atomics (-DUSE_LEGACY_ATOMICS). #786
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MPI Build | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
make-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install deps | |
run: sudo apt-get -y install gfortran openmpi-bin openmpi-common libopenmpi-dev | |
- name: Configure mpi | |
run: ./configure --mpi --enablef --prefix $PWD/install gnu | |
- name: Build mpi | |
run: make | |
- name: Install mpi | |
run: make install | |
- name: Set environment variables | |
run: | | |
echo "DO_PARALLEL=mpirun -np 2" >> $GITHUB_ENV | |
echo "QUICK_HOME=$PWD/install" >> $GITHUB_ENV | |
- name: Test mpi | |
run: make fulltest | |
- name: Archive test results | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: mpi-tests | |
path: /home/runner/work/QUICK/QUICK/install/test/runs/mpi | |
retention-days: 3 | |
- uses: actions/download-artifact@v2 | |
with: | |
name: mpi-tests | |
- name: Display structure of artifacts | |
run: ls -R | |
cmake-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install deps | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install gfortran cmake openmpi-bin openmpi-common libopenmpi-dev | |
- name: Configure MPI | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCOMPILER=GNU -DMPI=TRUE -DENABLEF=TRUE -DCMAKE_INSTALL_PREFIX=$(pwd)/../install | |
- name: Build MPI | |
run: | | |
cd build | |
make -j2 install | |
- name: Set environment variables | |
run: | | |
echo "DO_PARALLEL=mpirun -np 2" >> $GITHUB_ENV | |
echo "QUICK_HOME=$PWD/install" >> $GITHUB_ENV | |
- name: Test mpi | |
run: | | |
cd install | |
./runtest --mpi --full | |
- name: Archive test results | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: mpi-tests | |
path: /home/runner/work/QUICK/QUICK/install/test/runs/mpi | |
retention-days: 3 |