Skip to content

Multithreading performance improvements #898

Multithreading performance improvements

Multithreading performance improvements #898

Workflow file for this run

name: linux
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-24.04
container:
image: ubuntu:24.04
strategy:
fail-fast: false
matrix:
common-pkgs: [ git cmake ]
build-type: [ Release, RelWithDebInfo, Debug ]
compiler: [
{ cxx: g++-11, pkgs: g++-11 },
{ cxx: g++-12, pkgs: g++-12 },
{ cxx: g++-13, pkgs: g++-13 },
{ cxx: g++-14, pkgs: g++-14 },
{ cxx: clang++-15, pkgs: clang-15 },
{ cxx: clang++-16, pkgs: clang-16 },
{ cxx: clang++-17, pkgs: clang-17 },
{ cxx: clang++-18, pkgs: clang-18 },
]
defaults:
run:
working-directory: ${{ github.workspace }}/build
name: ${{ matrix.compiler.cxx }}, ${{ matrix.build-type }}
steps:
- name: checkout-repo
uses: actions/checkout@v4
- name: setup-compiler
run: apt update && apt install --allow-downgrades -y ${{ matrix.common-pkgs }} ${{ matrix.compiler.pkgs }}
- name: setup-catch
env:
CXX: ${{ matrix.compiler.cxx }}
run: bash ../tools/install_catch.sh ${{ matrix.build-type }}
- name: setup-build
env:
CXX: ${{ matrix.compiler.cxx }}
run: cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DGAPP_USE_WERROR=ON -DGAPP_USE_LTO=ON -DCMAKE_CXX_FLAGS="-D_GLIBCXX_ASSERTIONS"
- name: build
run: cmake --build . --parallel 8
- name: run-tests
run: ctest --output-on-failure --schedule-random
- name: install
run: cmake --install .
- name: run-reproducibility-test
run: ./reproducibility_test | tee results-${{ matrix.compiler.cxx }}-${{ matrix.build-type }}.txt
- uses: actions/upload-artifact@v4
with:
name: results-${{ matrix.compiler.cxx }}-${{ matrix.build-type }}
path: ${{ github.workspace }}/build/results-${{ matrix.compiler.cxx }}-${{ matrix.build-type }}.txt
compare:
needs: build
runs-on: ubuntu-24.04
steps:
- uses: actions/download-artifact@v4
with:
pattern: results*
merge-multiple: true
- name: compare-results
run: diff --unified=0 --to-file results*