Fixed memory leak in spectroscopy code #414
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: build | |
on: | |
pull_request: | |
branches: | |
- HiRep-CUDA | |
push: | |
branches: | |
- HiRep-CUDA | |
# cancel previous workflow | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
# Ensures that jobs are not cancelled is one job fails | |
fail-fast: false | |
matrix: | |
compiler: [gcc, clang] | |
nc: [2, 3] | |
repr: [FUND, ADJ] | |
omp: [-no-omp, -omp] | |
mpi: [-no-mpi, -mpi] | |
ecsw: [-expclover,-no-expclover] | |
exclude: | |
- nc: 3 | |
repr: ADJ | |
- mpi: "-mpi" | |
omp: "-omp" | |
steps: | |
- name: Download HiRep | |
run: wget https://github.com/claudiopica/HiRep/archive/${{ github.sha }}.tar.gz && tar -xvf ${{ github.sha }}.tar.gz --strip-components=1 | |
- name: Check API rate | |
uses: ./.github/actions/api-rate | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install dependencies | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: openmpi-bin openmpi-common libopenmpi3 libopenmpi-dev libomp-dev ninja-build | |
version: 1.0 | |
- name: Configure HiRep | |
run: ./Make/write_mkflags.pl -f Make/MkFlags.ini --cc ${{ matrix.compiler }} --env "OMPI_CC=${{ matrix.compiler }}" --mpicc mpicc.openmpi --cflags "-Wall -O1" -n ${{ matrix.nc }} -r ${{ matrix.repr }} ${{ matrix.mpi }} ${{ matrix.omp }} ${{ matrix.ecsw }} | |
- name: Build | |
run: time ./Make/nj | |