-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
115 lines (105 loc) · 2.55 KB
/
.gitlab-ci.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.dind:
image: docker:latest
before_script:
- apk add coreutils git make
services:
- docker:dind
stages:
- build
- test
- deploy
build-cuda11_7-clang14:
extends: .dind
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- make push/cuda11_7/clang14/mkl
- make push/cuda11_7/clang14/oss
timeout: 3 hours
tags:
- docker
- cpu-ge-8
- mem-ge-32gb
build-cuda11_7-gcc11:
extends: .dind
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- make push/cuda11_7/gcc11/mkl
- make push/cuda11_7/gcc11/oss
tags:
- docker
release:
extends: .dind
stage: deploy
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker login -u termoshtt -p ${GITHUB_PACKAGE_TOKEN_TERMOSHTT} ghcr.io/ricosjp
- make release
tags:
- docker
only:
- latest
- tags
cuda11_7-clang14-mkl-test:
stage: test
image: ${CI_REGISTRY_IMAGE}/cuda11_7-clang14-mkl:${CI_COMMIT_REF_NAME}
before_script:
- nvidia-smi
script:
- make -C /examples/clang_omp_offloading test
- make -C /examples/mpi_clang_omp_offloading test
tags:
- sm_61
cuda11_7-clang14-oss-test:
stage: test
image: ${CI_REGISTRY_IMAGE}/cuda11_7-clang14-oss:${CI_COMMIT_REF_NAME}
before_script:
- nvidia-smi
script:
- make -C /examples/clang_omp_offloading test
- make -C /examples/mpi_clang_omp_offloading test
tags:
- sm_61
cuda11_7-gcc11-oss-test:
stage: test
image: ${CI_REGISTRY_IMAGE}/cuda11_7-gcc11-oss:${CI_COMMIT_REF_NAME}
before_script:
- nvidia-smi
script:
- make -C /examples/gcc_omp_offloading test
- make -C /examples/gcc_openacc test
- make -C /examples/gfortran_omp_offloading test
- make -C /examples/gfortran_openacc test
tags:
- sm_61
cuda11_7-gcc11-mkl-test:
stage: test
image: ${CI_REGISTRY_IMAGE}/cuda11_7-gcc11-oss:${CI_COMMIT_REF_NAME}
before_script:
- nvidia-smi
script:
- make -C /examples/gcc_omp_offloading test
- make -C /examples/gcc_openacc test
- make -C /examples/gfortran_omp_offloading test
- make -C /examples/gfortran_openacc test
tags:
- sm_61
keep-changelog:
image: alpine:latest
stage: build
before_script:
- apk add git
script:
- git fetch
- "! git diff --exit-code origin/latest CHANGELOG.md"
allow_failure: true
except:
- latest
- tags
clang_format:
image: ghcr.io/ricosjp/allgebra/clang-format:20.10.1
stage: build
script:
- check-format.sh
allow_failure: true