-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci-N1.yml
64 lines (60 loc) · 1.79 KB
/
.gitlab-ci-N1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
stages:
- build
- test
- documentation
variables:
SCHEDULER_PARAMETERS: "-N 1 -n 1 -c 40 -t 00:15:00 -A pc2-mitarbeiter -p all --exclusive"
JULIA_DEPOT_PATH: "/scratch/pc2-mitarbeiter/bauerc/.julia-ci"
JULIA_NUM_THREADS: "12"
JULIA_1_8: "lang/JuliaHPC/1.8.5-foss-2022a-CUDA-11.7.0"
JULIA_1_9: "lang/JuliaHPC/1.9.2-foss-2022a-CUDA-11.7.0"
LIKWID_MODULE: "tools/likwid/5.2.1-GCC-11.2.0"
GROUP: "CPU" # run only CPU tests (no GPU available as of now)
default:
tags:
- bauerc-noctua
# This job tests the LIKWID.jl interface on Noctua 1 @ PC2
julia/1.9-N1:
stage: test
rules:
# - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "external_pull_request_event"'
- if: '$CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "external_pull_request_event"'
when: never
- if: "$CI_COMMIT_BRANCH" # trigger on commits
- when: never # don't run otherwise
# - if: '$CI_PIPELINE_SOURCE == "push"' # trigger on pushs
# - if: '$CI_COMMIT_TAG' # trigger on tags? (only needed for docs)
script:
- /bin/bash -l
- echo $CI_PIPELINE_SOURCE
- ml reset
- ml $LIKWID_MODULE
- ml $JULIA_1_9
- likwid-topology
- likwid-perfctr -i
- likwid-perfctr -a
- julia --color=yes --project=. -e 'using Pkg; Pkg.build(verbose=true); Pkg.test();'
# LIKWID.jl Documentation
build-and-deploy:
stage: documentation
only:
- main
- pushes
- tags
- external_pull_requests
needs:
job: julia/1.9-N1
script:
- /bin/bash -l
- ml reset
- ml $LIKWID_MODULE
- ml $JULIA_1_8
- likwid-topology
- likwid-perfctr -i
- likwid-perfctr -a
- cd docs
- julia --color=yes build_docs.jl
allow_failure: false