Skip to content
Snippets Groups Projects
Unverified Commit 3d001e31 authored by jakob-fritz's avatar jakob-fritz Committed by GitHub
Browse files

Fix Gitlab-CI (#441)

* Added Job-Token as needed by Gitlab

* Moved schedule towards nighttime

and triggered CI again, as HPC-Systems are now back

* Schedule gitlab-ci workflow at the same time as github-workflow

* Moved installation of more packages into preparation to avoid parallel access of files

* First try to use virtual envs from python

So that installed packages are available in later CI-Jobs

* Store venv on scratch

* Activate project to use SCRATCH

* Wrong usage of variables

* Try installing mpi4py-fft for later usage
parent 23755d1f
Branches
Tags
No related merge requests found
Pipeline #193926 passed
...@@ -7,7 +7,7 @@ on: ...@@ -7,7 +7,7 @@ on:
pull_request_target: pull_request_target:
types: [opened, synchronize, reopened, labeled] types: [opened, synchronize, reopened, labeled]
schedule: schedule:
- cron: '1 5 2 * *' - cron: '1 5 * * 1'
jobs: jobs:
check_permission: check_permission:
......
...@@ -8,12 +8,18 @@ stages: ...@@ -8,12 +8,18 @@ stages:
variables: variables:
JUWELS_ACCOUNT: "cstma" JUWELS_ACCOUNT: "cstma"
JUWELS_PROJECT: "ccstma"
prepare_JUWELS: prepare_JUWELS:
stage: benchmark stage: benchmark
rules: rules:
- if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/ - if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/
id_tokens:
CI_JOB_JWT:
aud: https://gitlab.jsc.fz-juelich.de
SITE_ID_TOKEN:
aud: https://gitlab.jsc.fz-juelich.de
tags: tags:
- jacamar - jacamar
- juwels - juwels
...@@ -29,8 +35,16 @@ prepare_JUWELS: ...@@ -29,8 +35,16 @@ prepare_JUWELS:
- module load mpi4py - module load mpi4py
- module load SciPy-Stack - module load SciPy-Stack
- module load CuPy - module load CuPy
- jutil env activate -p ${JUWELS_PROJECT}
- python -m venv --clear $SCRATCH/.venv/pySDC
- source $SCRATCH/.venv/pySDC/bin/activate
- pip install -e . - pip install -e .
- pip install pytest-benchmark coverage - pip install pytest-benchmark coverage
- git submodule add -f https://github.com/brownbaerchen/mpi4py-fft.git
- cd mpi4py-fft
- git checkout cupy_implementation
- FFTW_LIBRARY_DIR="/p/software/juwels/stages/2024/software/FFTW/3.3.10-GCC-12.3.0/lib64" pip install --force-reinstall .
- cd ../
test_JUWELS: test_JUWELS:
...@@ -39,6 +53,11 @@ test_JUWELS: ...@@ -39,6 +53,11 @@ test_JUWELS:
- prepare_JUWELS - prepare_JUWELS
rules: rules:
- if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/ - if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/
id_tokens:
CI_JOB_JWT:
aud: https://gitlab.jsc.fz-juelich.de
SITE_ID_TOKEN:
aud: https://gitlab.jsc.fz-juelich.de
tags: tags:
- jacamar - jacamar
- juwels - juwels
...@@ -63,11 +82,8 @@ test_JUWELS: ...@@ -63,11 +82,8 @@ test_JUWELS:
- module load mpi4py - module load mpi4py
- module load SciPy-Stack - module load SciPy-Stack
- module load CuPy - module load CuPy
- git submodule add -f https://github.com/brownbaerchen/mpi4py-fft.git - jutil env activate -p ${JUWELS_PROJECT}
- cd mpi4py-fft - source $SCRATCH/.venv/pySDC/bin/activate
- git checkout cupy_implementation
- FFTW_LIBRARY_DIR="/p/software/juwels/stages/2024/software/FFTW/3.3.10-GCC-12.3.0/lib64" pip install --force-reinstall -e .
- cd ../
script: script:
# - touch benchmarks/output.json # - touch benchmarks/output.json
- echo $SYSTEMNAME - echo $SYSTEMNAME
...@@ -88,6 +104,11 @@ benchmark: ...@@ -88,6 +104,11 @@ benchmark:
when: manual when: manual
tags: tags:
- docker - docker
id_tokens:
CI_JOB_JWT:
aud: https://gitlab.jsc.fz-juelich.de
SITE_ID_TOKEN:
aud: https://gitlab.jsc.fz-juelich.de
rules: rules:
- if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/ - if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/
artifacts: artifacts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment