Skip to content

Commit

Permalink
Split installation and running into two jobs
Browse files Browse the repository at this point in the history
As one of the two jobs often failed during installation, while the other one succeeded. So it might be a race condition. Therefore, splitting installation and usage into separate jobs
  • Loading branch information
jakob-fritz committed Apr 24, 2024
1 parent 488e7a4 commit 24cdf05
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,34 @@ variables:
JUWELS_ACCOUNT: "cstma"


prepare_JUWELS:
stage: benchmark
rules:
- if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/
tags:
- jacamar
- juwels
- login
- shell
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
- pip install -e .
- pip install pytest-benchmark coverage


test_JUWELS:
stage: benchmark
needs:
- prepare_JUWELS
rules:
- if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/
tags:
Expand Down Expand Up @@ -39,8 +65,6 @@ test_JUWELS:
- module load mpi4py
- module load SciPy-Stack
- module load CuPy
- pip install -e .
- pip install pytest-benchmark coverage
script:
# - touch benchmarks/output.json
- echo $SYSTEMNAME
Expand Down

0 comments on commit 24cdf05

Please sign in to comment.