From 5714ac0a3f8dd6d52697a6fde55c49659d70e431 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Sun, 25 Oct 2026 14:56:16 +0100 Subject: [PATCH] CI: run the tests with 4 threads The CPU backend gives PoCL as many threads as Julia has, and the main CI job uses one, so work-groups only ran in parallel in the POCL session test's 4-thread subprocess. Add a job running the suite with 4 threads on Linux and macOS, with Julia 1.10 and 1.13. --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcd3ab859..a01214805 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,6 +102,34 @@ jobs: with: files: lcov.info + threads: + # the CPU backend gives PoCL as many threads as Julia has, so with the main job's single + # thread, work-groups only run in parallel in the POCL session test's subprocess + name: CI with ${{ matrix.threads }} threads + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: ['1.10', '1.13'] + os: [ubuntu-24.04, macOS-15] + threads: ['4'] + steps: + - uses: actions/checkout@v7 + - uses: julia-actions/setup-julia@v3 + with: + version: ${{ matrix.version }} + - uses: julia-actions/cache@v3 + # see the CI job + - name: Dev KernelInterface + shell: bash + run: julia -e 'using Pkg; Pkg.activate("."); Pkg.develop(; path="lib/KernelInterface")' + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + env: + JULIA_NUM_THREADS: ${{ matrix.threads }} + with: + annotate: true + KernelInterface: name: KernelInterface runs-on: ${{ matrix.os }}