Skip to content

Commit

Permalink
Splitted cupy-test and benchmark into two jobs
Browse files Browse the repository at this point in the history
As one runs without tracking coverage (though no reporting)
  • Loading branch information
jakob-fritz committed Feb 23, 2024
1 parent 0b5f380 commit 609c62e
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test_JUWELS:
- shell
parallel:
matrix:
- SHELL_SCRIPT: [ 'benchmark', 'cupy' ]
- SHELL_SCRIPT: [ 'cupy' ]
artifacts:
when: always
paths:
Expand All @@ -66,7 +66,7 @@ test_JUWELS:
# - touch benchmarks/output.json
- echo $SYSTEMNAME
- sbatch --wait etc/juwels_${SHELL_SCRIPT}.sh
- coverage combine
- python -m coverage combine
- mv .coverage coverage_${SHELL_SCRIPT}.dat
after_script:
- echo "Following Errors occured:"
Expand All @@ -76,6 +76,51 @@ test_JUWELS:
- ls -lh .


benchmark_JUWELS:
stage: benchmark
rules:
- if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/
tags:
- jacamar
- juwels
- login
- shell
parallel:
matrix:
- SHELL_SCRIPT: [ 'benchmark']
artifacts:
when: always
paths:
- coverage_*.dat
- sbatch.err
- sbatch.out
before_script:
- mkdir -p benchmarks
# load the latest Python module (currently 3.11)
- module --force purge
- module load Stages/2024
- module load GCC
- module load OpenMPI
- module load FFTW
- module load mpi4py
- module load SciPy-Stack
- module load CuPy
- pwd
- ls -lah
- pip install -e .
- pip install pytest-benchmark
script:
# - touch benchmarks/output.json
- echo $SYSTEMNAME
- sbatch --wait etc/juwels_${SHELL_SCRIPT}.sh
after_script:
- echo "Following Errors occured:"
- cat sbatch.err
- echo "Following was written to stdout:"
- cat sbatch.out
- ls -lh .


#test_kit:
# image: rcaspart/micromamba-cuda
# stage: benchmark
Expand Down

0 comments on commit 609c62e

Please sign in to comment.