forked from theday79/cbctrecon
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gitlab-ci.yml
171 lines (158 loc) · 4.64 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
variables:
GIT_STRATEGY: clone
CUDA_AVAILABLE: "NO"
COVERAGE: "NO"
Ubuntu-gcc10-superbuild:
stage: test
tags:
- linux
- docker
- gpu
image: andreasga/cbctrecon:gcc-10-x86_64
script:
- export CC=/usr/bin/gcc-10
- export CXX=/usr/bin/g++-10
- ./ci/ci.sh
Ubuntu-gcc10-CUDA:
stage: test
tags:
- linux
- docker
- cuda
- gpu
image: andreasga/cbctrecon:gcc-10-CUDA-x86_64
variables:
CUDA_AVAILABLE: "YES"
COVERAGE: "YES"
script:
- export CC=/usr/bin/gcc-10
- export CXX=/usr/bin/g++-10
- wget -O cuda_pass.svg https://img.shields.io/badge/CUDA-failing-red.svg
- ./ci/ci.sh
- wget -O cuda_pass.svg https://img.shields.io/badge/CUDA-passing-green.svg
allow_failure: true
artifacts:
when: always
paths:
- cuda_pass.svg
Ubuntu-gcc10-coverage-prebuild-deps:
stage: test
tags:
- linux
- docker
- gpu
image: andreasga/cbctrecon:gcc-10-x86_64-libDCMTK-ITK-RTK
variables:
COVERAGE: "YES"
script:
- export CC=/usr/bin/gcc-10
- export CXX=/usr/bin/g++-10
- ./ci/ci.sh
Ubuntu-clang11-prebuild-deps:
stage: test
tags:
- linux
- docker
- gpu
image: andreasga/cbctrecon:clang-11-x86_64-libDCMTK-ITK-RTK
script:
- export CC=/usr/bin/clang
- export CXX=/usr/bin/clang++
- ./ci/ci.sh
Ubuntu-clang11-ROCm:
stage: test
tags:
- linux
- docker
- rocm
# Our ROCm docker exported gfx900 as the target arch, so:
- vega
- gpu
image: andreasga/cbctrecon:clang-11-ROCm-x86_64
script:
- export CC=/opt/rocm/hip/bin/hipcc
- export CXX=/opt/rocm/hip/bin/hipcc
# - export CXXFLAGS="-stdlib=libc++"
- export CUSTOM_CMAKE_FLAGS="-DOpenMP_CXX_FLAGS='-fopenmp=libomp' -DOpenMP_CXX_LIB_NAMES=omp"
- export CUSTOM_CMAKE_FLAGS="$CUSTOM_CMAKE_FLAGS -DHIPSYCL_SYCLCC_EXTRA_ARGS='--rocm-device-lib-path=/opt/rocm/amdgcn/bitcode/'"
- export CUSTOM_CMAKE_FLAGS="$CUSTOM_CMAKE_FLAGS -DHIPSYCL_ROCM_PATH=/opt/rocm/"
- wget -O rocm_pass.svg https://img.shields.io/badge/ROCm-failing-red.svg
- ./ci/ci.sh
- wget -O rocm_pass.svg https://img.shields.io/badge/ROCm-passing-green.svg
allow_failure: true
artifacts:
when: always
paths:
- rocm_pass.svg
Ubuntu-icc21-oneAPI:
stage: test
tags:
- linux
- docker
image: andreasga/cbctrecon:icc-21-oneAPI-x86_64
script:
- export pre_setvars_path=$PATH
- source /opt/intel/oneapi/setvars.sh
- export PATH=$PATH:$pre_setvars_path
- export CC=icc
- export CXX=icpc
- wget -O oneapi_pass.svg https://img.shields.io/badge/oneAPI-failing-red.svg
- ./ci/ci.sh
- wget -O oneapi_pass.svg https://img.shields.io/badge/oneAPI-passing-green.svg
allow_failure: true
artifacts:
when: always
paths:
- oneapi_pass.svg
Windows10-msvc2019-CUDA:
stage: test
tags:
- windows
- gpu
- shell
script:
- Import-Module "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
- Enter-VsDevShell 512426f1
- $env:CUDA_PATH = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.1"
- mkdir build
- cd build
- cmake -G"Visual Studio 16 2019" -A"x64" .. `
-DCMAKE_BUILD_TYPE=Release `
-DCMAKE_INSTALL_PREFIX="../install" `
-DCMAKE_CXX_FLAGS_RELEASE="/MT /O2 /Ob2 /DNDEBUG /Zc:__cplusplus" `
-DCMAKE_C_FLAGS_RELEASE="/MT /O2 /Ob2 /DNDEBUG" `
-DCMAKE_PREFIX_PATH="C:/Qt/5.15.2/msvc2019_64/" `
-DHUNTER_ENABLED=OFF `
-DRTK_USE_OPENCL=ON `
-DUSE_CUDA=ON `
-DITK_DIR="C:/Program Files (x86)/ITK/lib/cmake/ITK-5.2" `
-DUSE_SYSTEM_DCMTK=ON `
-DDCMTK_DIR="C:/Program Files (x86)/DCMTK/cmake/" `
-DUSE_SYSTEM_Plastimatch=OFF `
-DUSE_SYSTEM_ZLIB=ON `
-DUSE_SYSTEM_dlib=ON `
-Ddlib_DIR="C:/Program Files (x86)/dlib_project/lib/cmake/dlib/"
- cmake --build . --config Release -j 12
- cmake --build . --config Release --target INSTALL
- ctest -VV -C Release
- cmake --build . --config Release --target PACKAGE
artifacts:
name: "$env:CI_JOB_STAGE-$env:CI_COMMIT_REF_NAME"
paths:
- build/*.msi
pages:
stage: deploy
needs:
- Ubuntu-gcc10-CUDA
- Ubuntu-clang11-ROCm
- Ubuntu-icc21-oneAPI
image: alpine:3.13
script:
- mkdir public
- cp *.svg ./public/
artifacts:
paths:
- public
only:
refs:
- master