Skip to content

feat: add CLI flag to control max memory overcommitment #359

feat: add CLI flag to control max memory overcommitment

feat: add CLI flag to control max memory overcommitment #359

Workflow file for this run

name: Compile and run units tests
on: [ push, pull_request ]
jobs:
kaminpar_tests:
runs-on: ubuntu-24.04
continue-on-error: true
strategy:
matrix:
compiler:
- { name: Clang, cc: clang, cxx: clang++ }
- { name: GNU, cc: gcc, cxx: g++ }
build-mode: [Release]
steps:
- name: Install dependencies
run: sudo apt-get install -y libtbb-dev libhwloc-dev mpi libopenmpi-dev libomp-dev libsparsehash-dev
- name: Checkout HEAD
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
- name: Export compiler
run: |
echo CXX=${{matrix.compiler.cxx}} >> $GITHUB_ENV
echo CC=${{matrix.compiler.cc}} >> $GITHUB_ENV
- name: CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build-mode}} -DCMAKE_C_COMPILER=${{matrix.compiler.cc}} -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} -DKAMINPAR_ASSERTION_LEVEL=normal -DKAMINPAR_BUILD_TESTS=On -DKAMINPAR_BUILD_DISTRIBUTED=On -DKAMINPAR_BUILD_APPS=On
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build-mode}} --parallel 2
env:
ASAN_OPTIONS: detect_leaks=0
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure
env:
ASAN_OPTIONS: detect_leaks=0