forked from acts-project/detray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
78 lines (70 loc) · 1.78 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
stages:
- build
- test
build_cuda:
tags: [docker]
stage: build
image: ghcr.io/acts-project/ubuntu2004_cuda:v30
artifacts:
paths:
- build
script:
- git clone $CLONE_URL src
- git -C src checkout $HEAD_SHA
- >
cmake -S src -B build
-DCMAKE_BUILD_TYPE=Release
-DBUILD_TESTING=ON
-DDETRAY_BUILD_TESTING=ON
-DDETRAY_BUILD_CUDA=ON
-DDETRAY_VC_PLUGIN=OFF
-DDETRAY_SMATRIX_PLUGIN=OFF
-DDETRAY_EIGEN_PLUGIN=ON
- cmake --build build
test_cuda:
stage: test
tags: [docker-gpu-nvidia]
image: ghcr.io/acts-project/ubuntu2004_cuda:v30
needs:
- build_cuda
script:
- cd build
- nvidia-smi
- ctest --output-on-failure -R ".*cuda.*"
- find bin -type f -name "*cuda" -not -name "*text*" -exec {} \;
build_sycl:
tags: [docker]
stage: build
image: "ghcr.io/acts-project/ubuntu2004_oneapi:v30"
artifacts:
paths:
- build
script:
- git clone $CLONE_URL src
- git -C src checkout $HEAD_SHA
- source src/.github/ci_setup.sh SYCL
- >
cmake -S src -B build
-DCMAKE_BUILD_TYPE=Release
-DDETRAY_BUILD_CUDA=OFF
-DDETRAY_BUILD_SYCL=ON
-DBUILD_TESTING=ON
-DDETRAY_BUILD_TESTING=ON
-DDETRAY_VC_PLUGIN=OFF
-DDETRAY_SMATRIX_PLUGIN=OFF
-DDETRAY_EIGEN_PLUGIN=ON
- cmake --build build
test_sycl:
stage: test
tags: [docker-gpu-nvidia]
image: "ghcr.io/acts-project/ubuntu2004_oneapi:v30"
needs:
- build_sycl
script:
- git clone $CLONE_URL src
- git -C src checkout $HEAD_SHA
- source src/.github/ci_setup.sh SYCL
- cd build
- nvidia-smi
- ctest --output-on-failure -R ".*sycl.*"
- find bin -type f -name "*sycl" -not -name "*text*" -exec {} \;