Update the test workflow (#26)
- Upgrade to v1.2 of slurm-action - Add extra element to matrix to test this new action - Add cleanup step - Simplify handling of artefacts - Execute tests directly (not with ctest)
This commit is contained in:
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
@@ -13,14 +13,23 @@ jobs:
|
|||||||
gres: gpu:A4000
|
gres: gpu:A4000
|
||||||
cmake_flags: "-DTRIGDX_USE_MKL=1 -DTRIGDX_USE_GPU=1 -DTRIGDX_USE_MKL=1 -DTRIGDX_USE_XSIMD=1 -DCMAKE_CUDA_ARCHITECTURES=86"
|
cmake_flags: "-DTRIGDX_USE_MKL=1 -DTRIGDX_USE_GPU=1 -DTRIGDX_USE_MKL=1 -DTRIGDX_USE_XSIMD=1 -DCMAKE_CUDA_ARCHITECTURES=86"
|
||||||
environment_modules: "spack/20250403 intel-oneapi-mkl cuda python"
|
environment_modules: "spack/20250403 intel-oneapi-mkl cuda python"
|
||||||
|
- name: NVIDIA GH200
|
||||||
|
partition: ghq
|
||||||
|
gres: gpu:GH200
|
||||||
|
cmake_flags: "-DTRIGDX_USE_GPU=1 -DTRIGDX_USE_XSIMD=1 -DCMAKE_CUDA_ARCHITECTURES=90a -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc"
|
||||||
env:
|
env:
|
||||||
DEVICE_NAME: ${{ matrix.name }}
|
DEVICE_NAME: ${{ matrix.name }}
|
||||||
PARTITION_NAME: ${{ matrix.partition }}
|
PARTITION_NAME: ${{ matrix.partition }}
|
||||||
CMAKE_FLAGS: ${{ matrix.cmake_flags }}
|
CMAKE_FLAGS: ${{ matrix.cmake_flags }}
|
||||||
ENVIRONMENT_MODULES: ${{ matrix.environment_modules }}
|
ENVIRONMENT_MODULES: ${{ matrix.environment_modules }}
|
||||||
steps:
|
steps:
|
||||||
|
- &cleanup
|
||||||
|
name: "Remove old workspace"
|
||||||
|
run: |
|
||||||
|
rm -rf $GITHUB_WORKSPACE/*
|
||||||
|
mkdir -p $GITHUB_WORKSPACE
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: astron-rd/slurm-action@v1
|
- uses: astron-rd/slurm-action@v1.2
|
||||||
with:
|
with:
|
||||||
partition: ${{ matrix.partition }}
|
partition: ${{ matrix.partition }}
|
||||||
gres: ${{ matrix.gres }}
|
gres: ${{ matrix.gres }}
|
||||||
@@ -43,15 +52,16 @@ jobs:
|
|||||||
DEVICE_NAME: ${{ matrix.name }}
|
DEVICE_NAME: ${{ matrix.name }}
|
||||||
PARTITION_NAME: ${{ matrix.partition }}
|
PARTITION_NAME: ${{ matrix.partition }}
|
||||||
steps:
|
steps:
|
||||||
|
- *cleanup
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build-${{ matrix.name }}
|
name: build-${{ matrix.name }}
|
||||||
- uses: astron-rd/slurm-action@v1
|
- uses: astron-rd/slurm-action@v1.2
|
||||||
with:
|
with:
|
||||||
partition: ${{ matrix.partition }}
|
partition: ${{ matrix.partition }}
|
||||||
gres: ${{ matrix.gres }}
|
gres: ${{ matrix.gres }}
|
||||||
commands: |
|
commands: |
|
||||||
ctest --test-dir build --output-on-failure
|
find tests -type f -executable -exec {} \;
|
||||||
|
|
||||||
benchmark:
|
benchmark:
|
||||||
runs-on: [slurm]
|
runs-on: [slurm]
|
||||||
@@ -62,12 +72,13 @@ jobs:
|
|||||||
DEVICE_NAME: ${{ matrix.name }}
|
DEVICE_NAME: ${{ matrix.name }}
|
||||||
PARTITION_NAME: ${{ matrix.partition }}
|
PARTITION_NAME: ${{ matrix.partition }}
|
||||||
steps:
|
steps:
|
||||||
|
- *cleanup
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build-${{ matrix.name }}
|
name: build-${{ matrix.name }}
|
||||||
- uses: astron-rd/slurm-action@v1
|
- uses: astron-rd/slurm-action@v1.2
|
||||||
with:
|
with:
|
||||||
partition: ${{ matrix.partition }}
|
partition: ${{ matrix.partition }}
|
||||||
gres: ${{ matrix.gres }}
|
gres: ${{ matrix.gres }}
|
||||||
commands: |
|
commands: |
|
||||||
find build/benchmarks -type f -executable -exec {} \;
|
find benchmarks -type f -executable -exec {} \;
|
||||||
|
|||||||
Reference in New Issue
Block a user