-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into rm_code_duplication
- Loading branch information
Showing
23 changed files
with
218 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: run-common-precommit | ||
name: Run Model Common Pre-commit | ||
entry: pre-commit run --config model/common/.pre-commit-config.yaml --all-files | ||
language: system | ||
pass_filenames: false | ||
always_run: true | ||
|
||
- id: run-driver-precommit | ||
name: Run Model Driver Pre-commit | ||
entry: pre-commit run --config model/driver/.pre-commit-config.yaml --all-files | ||
language: system | ||
pass_filenames: false | ||
always_run: true | ||
|
||
- id: run-atmosphere-advection-precommit | ||
name: Run Model Atmosphere Advection Pre-commit | ||
entry: pre-commit run --config model/atmosphere/advection/.pre-commit-config.yaml --all-files | ||
language: system | ||
pass_filenames: false | ||
always_run: true | ||
|
||
- id: run-atmosphere-diffusion-precommit | ||
name: Run Model Atmosphere Diffusion Pre-commit | ||
entry: pre-commit run --config model/atmosphere/diffusion/.pre-commit-config.yaml --all-files | ||
language: system | ||
pass_filenames: false | ||
always_run: true | ||
|
||
- id: run-atmosphere-dycore-precommit | ||
name: Run Model Atmosphere Dycore Pre-commit | ||
entry: pre-commit run --config model/atmosphere/dycore/.pre-commit-config.yaml --all-files | ||
language: system | ||
pass_filenames: false | ||
always_run: true | ||
|
||
- id: run-tools-precommit | ||
name: Run Tools Pre-commit | ||
entry: pre-commit run --config tools/.pre-commit-config.yaml --all-files | ||
language: system | ||
pass_filenames: false | ||
always_run: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
include: | ||
- remote: 'https://gitlab.com/cscs-ci/recipes/-/raw/master/templates/v2/.ci-ext.yml' | ||
|
||
stages: | ||
- build | ||
- test | ||
- benchmark | ||
|
||
.py310: &py310 | ||
PYVERSION_PREFIX: py310 | ||
PYVERSION: 3.10.9 | ||
|
||
variables: | ||
PYTHON_VERSION: "3.10" | ||
PERSIST_IMAGE_NAME: $CSCS_REGISTRY_PATH/icon4py:$CI_COMMIT_SHORT_SHA | ||
|
||
.build_template: | ||
stage: build | ||
extends: .container-builder | ||
variables: | ||
DOCKERFILE: ci/docker/Dockerfile.build | ||
DOCKER_BUILD_ARGS: '["PYVERSION=$PYVERSION"]' | ||
<<: *py310 | ||
|
||
.test_template: | ||
extends: .container-runner-daint-gpu | ||
timeout: 8h | ||
image: $PERSIST_IMAGE_NAME | ||
before_script: | ||
- apt-get update | ||
- python3 -m pip install --upgrade pip setuptools wheel | ||
- cd /icon4py | ||
- pyversion_no_dot="${PYTHON_VERSION//./}" | ||
- pip install tox clang-format | ||
- python -c "import cupy" | ||
- ls ${TEST_DATA_PATH} | ||
variables: | ||
SLURM_JOB_NUM_NODES: 1 | ||
SLURM_NTASKS: 1 | ||
SLURM_TIMELIMIT: '06:00:00' | ||
CRAY_CUDA_MPS: 1 | ||
NUM_PROCESSES: auto | ||
VIRTUALENV_SYSTEM_SITE_PACKAGES: 1 | ||
CSCS_NEEDED_DATA: icon4py | ||
TEST_DATA_PATH: "/apps/daint/UES/jenkssl/ciext/icon4py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
include: | ||
- local: 'ci/base.yml' | ||
|
||
variables: | ||
DACE_VERSION: "0.14.4" | ||
|
||
build: | ||
extends: .build_template | ||
|
||
benchmark_model_icon_grid: | ||
extends: .test_template | ||
stage: benchmark | ||
script: | ||
- if [ "$BACKEND" = "dace_cpu" ] || [ "$BACKEND" = "dace_gpu" ]; then pip install dace==$DACE_VERSION; fi | ||
- tox -r -e run_benchmarks -c model/ -- --backend=$BACKEND --grid=icon_grid --disable-warnings | ||
parallel: | ||
matrix: | ||
- BACKEND: [dace_cpu, gtfn_cpu, gtfn_gpu] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
include: | ||
- local: 'ci/base.yml' | ||
|
||
build: | ||
extends: .build_template | ||
|
||
test_model_simple_grid: | ||
extends: .test_template | ||
stage: test | ||
script: | ||
- tox -r -e run_stencil_tests -c model/ --verbose -- --backend=$BACKEND | ||
parallel: | ||
matrix: | ||
- BACKEND: [gtfn_cpu, gtfn_gpu, roundtrip] | ||
|
||
test_tools: | ||
extends: .test_template | ||
stage: test | ||
script: | ||
- tox -r -c tools/ --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.