Skip to content

Disable work_stealing testing #43

Disable work_stealing testing

Disable work_stealing testing #43

Workflow file for this run

name: CI-Fortran
on:
push:
pull_request:
branches: [ "master" ]
jobs:
GCC-build:
runs-on: ${{ matrix.image }}
strategy:
matrix:
image: [ 'ubuntu-22.04' ]
GCC: [ '12' ]
BUILD_TYPE: [ 'Release' ]
WITH_MPI: [ 'ON', 'OFF' ]
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.25.0"
- name: Install GCC
run: sudo apt update && sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt install g++-${{ matrix.GCC }} gfortran-${{ matrix.GCC }} gcc-${{ matrix.GCC }} libopenmpi-dev
- name: Configure CMake
run: cmake -G"Ninja" -Sexamples/Fortran -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} -DCMAKE_C_COMPILER=gcc-${{ matrix.GCC }} -DCMAKE_CXX_COMPILER=g++-${{ matrix.GCC }} -DCMAKE_Fortran_COMPILER=gfortran-${{ matrix.GCC }} -DWITH_MPI=${{ matrix.WITH_MPI }}
- name: Build
run: ninja -C build
- name: Tests without MPI
if: matrix.WITH_MPI == 'OFF'
run: |
build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=static build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=local_static build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=dynamic build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=guided build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=work_stealing build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=dinamic build/SLB4MPI_f_example
- name: Tests with MPI
if: matrix.WITH_MPI == 'ON'
run: |
mpirun -n 2 --oversubscribe build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=static mpirun -n 2 --oversubscribe build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=local_static mpirun -n 2 --oversubscribe build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=dynamic mpirun -n 2 --oversubscribe build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=guided mpirun -n 2 --oversubscribe build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=work_stealing mpirun -n 2 --oversubscribe build/SLB4MPI_f_example
SLB4MPI_LOAD_BALANCER=dinamic mpirun -n 2 --oversubscribe build/SLB4MPI_f_example