From 50830813936342f5a8d5c04d085cfedddccc58cc Mon Sep 17 00:00:00 2001 From: Simone Balducci Date: Sat, 29 Nov 2025 23:59:07 +0100 Subject: [PATCH 1/2] Create workflows for testing on AMD and NVIDIA GPUs --- .github/workflows/test-amd-gpu.yml | 27 +++++++++++++++++++++++++++ .github/workflows/test-nvidia-gpu.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/workflows/test-amd-gpu.yml create mode 100644 .github/workflows/test-nvidia-gpu.yml diff --git a/.github/workflows/test-amd-gpu.yml b/.github/workflows/test-amd-gpu.yml new file mode 100644 index 0000000..05ff8d0 --- /dev/null +++ b/.github/workflows/test-amd-gpu.yml @@ -0,0 +1,27 @@ +name: Run tests on AMD GPUs + +on: pull_request + +jobs: + amd-gpu-tests: + strategy: + matrix: + runner: + - cern-nextgen-w7900 + - cern-nextgen-mi300x + runs-on: ${{ matrix.runner }} + container: registry.cern.ch/ngt/lxplus-like:9 + + steps: + - uses: actions/checkout@v4 + + - name: Compile and run HIP tests + working-directory: ${{ github.workspace }}/tests + run: | + cmake -B build/debug -DCMAKE_BUILD_TYPE=Debug + cmake --build build/debug --parallel + ctest --test-dir build/debug --output-on-failure + + cmake -B build/release -DCMAKE_BUILD_TYPE=Release + cmake --build build/release --parallel + ctest --test-dir build/debug --output-on-failure diff --git a/.github/workflows/test-nvidia-gpu.yml b/.github/workflows/test-nvidia-gpu.yml new file mode 100644 index 0000000..8e3639a --- /dev/null +++ b/.github/workflows/test-nvidia-gpu.yml @@ -0,0 +1,27 @@ +name: Run tests on NVIDIA GPU + +on: pull_request + +jobs: + gpu-tests: + strategy: + matrix: + runner: + - cern-nextgen-h100 + - cern-nextgen-l40s + runs-on: ${{ matrix.runner }} + container: registry.cern.ch/ngt/lxplus-like:9 + + steps: + - uses: actions/checkout@v4 + + - name: Compile and run CUDA tests + working-directory: ${{ github.workspace }}/tests + run: | + cmake -B build/debug -DCMAKE_BUILD_TYPE=Debug + cmake --build build/debug --parallel + ctest --test-dir build/debug --output-on-failure + + cmake -B build/release -DCMAKE_BUILD_TYPE=Release + cmake --build build/release --parallel + ctest --test-dir build/debug --output-on-failure From 17e27e5d4e2691d75882e4ccef5c5aff1193ba95 Mon Sep 17 00:00:00 2001 From: Simone Balducci Date: Sun, 30 Nov 2025 00:03:57 +0100 Subject: [PATCH 2/2] test --- .github/workflows/test-nvidia-gpu.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-nvidia-gpu.yml b/.github/workflows/test-nvidia-gpu.yml index 8e3639a..fc8ff9b 100644 --- a/.github/workflows/test-nvidia-gpu.yml +++ b/.github/workflows/test-nvidia-gpu.yml @@ -1,15 +1,12 @@ name: Run tests on NVIDIA GPU -on: pull_request +on: + pull_request: + branches: [ "main" ] jobs: gpu-tests: - strategy: - matrix: - runner: - - cern-nextgen-h100 - - cern-nextgen-l40s - runs-on: ${{ matrix.runner }} + runs-on: cern-nextgen-h100 container: registry.cern.ch/ngt/lxplus-like:9 steps: @@ -25,3 +22,10 @@ jobs: cmake -B build/release -DCMAKE_BUILD_TYPE=Release cmake --build build/release --parallel ctest --test-dir build/debug --output-on-failure + + # strategy: + # matrix: + # runner: + # - cern-nextgen-h100 + # - cern-nextgen-l40s + # runs-on: ${{ matrix.runner }}