-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitlab-ci.yml
70 lines (61 loc) · 1.45 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
stages:
- build
- test
build_cuda:
tags: [docker]
stage: build
image: ghcr.io/acts-project/ubuntu2004_cuda:v13
artifacts:
paths:
- build
script:
- git clone $CLONE_URL src
- git -C src checkout $HEAD_SHA
- >
cmake -S src -B build
-DCMAKE_BUILD_TYPE=Release
-DVECMEM_BUILD_CUDA_LIBRARY=ON
-DVECMEM_BUILD_BENCHMARKING=ON
- cmake --build build
test_cuda:
stage: test
tags: [docker-gpu-nvidia]
image: ghcr.io/acts-project/ubuntu2004_cuda:v13
needs:
- build_cuda
script:
- cd build
- nvidia-smi
- ctest --output-on-failure -R ".*cuda.*"
build_cuda_sycl:
tags: [docker]
stage: build
image: ghcr.io/acts-project/ubuntu1804_cuda_oneapi:v18
artifacts:
paths:
- build
script:
- git clone $CLONE_URL src
- git -C src checkout $HEAD_SHA
- >
cmake -S src -B build
-DCMAKE_BUILD_TYPE=Release
-DVECMEM_BUILD_SYCL_LIBRARY=ON
-DVECMEM_BUILD_CUDA_LIBRARY=OFF
-DVECMEM_BUILD_BENCHMARKING=ON
- cmake --build build
test_cuda_sycl:
stage: test
tags: [docker-gpu-nvidia]
variables:
SYCL_DEVICE_FILTER: "cuda"
image: ghcr.io/acts-project/ubuntu1804_cuda_oneapi:v18
needs:
- build_cuda_sycl
script:
- cd build
- export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH"
- ldd bin/vecmem_test_sycl
- nvidia-smi
- sycl-ls
- ctest --output-on-failure -R ".*sycl.*"