Skip to content

Commit 6ef0e38

Browse files
committed
add gpu yml file
1 parent fabab6e commit 6ef0e38

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
stages:
2+
- build
3+
- test
4+
5+
6+
build_cuda:
7+
tags: [docker]
8+
stage: build
9+
image: ghcr.io/acts-project/ubuntu2004_cuda:v13
10+
artifacts:
11+
paths:
12+
- build
13+
script:
14+
- git clone $CLONE_URL src
15+
- git -C src checkout $HEAD_SHA
16+
- >
17+
cmake -S src -B build
18+
-DCMAKE_BUILD_TYPE=Release
19+
-DBUILD_TESTING=ON
20+
-DDETRAY_BUILD_TESTING=ON
21+
-DDETRAY_BUILD_CUDA=ON
22+
-DDETRAY_BUILD_VC_PLUGIN=OFF
23+
-DDETRAY_BUILD_SMATRIX_PLUGIN=OFF
24+
-DDETRAY_BUILD_EIGEN_PLUGIN=OFF
25+
- cmake --build build
26+
27+
28+
# test_cuda:
29+
# stage: test
30+
# tags: [docker-gpu-nvidia]
31+
# image: ghcr.io/acts-project/ubuntu2004_cuda:v13
32+
# needs:
33+
# - build_cuda
34+
# script:
35+
# - cd build
36+
# - nvidia-smi
37+
# - ctest --output-on-failure -R ".*cuda.*"
38+
39+
40+
# build_cuda_sycl:
41+
# tags: [docker]
42+
# stage: build
43+
# image: ghcr.io/acts-project/ubuntu1804_cuda_oneapi:v18
44+
# artifacts:
45+
# paths:
46+
# - build
47+
# script:
48+
# - git clone $CLONE_URL src
49+
# - git -C src checkout $HEAD_SHA
50+
51+
# - >
52+
# cmake -S src -B build
53+
# -DCMAKE_BUILD_TYPE=Release
54+
# -DVECMEM_BUILD_SYCL_LIBRARY=ON
55+
# -DVECMEM_BUILD_CUDA_LIBRARY=OFF
56+
# -DVECMEM_BUILD_BENCHMARKING=ON
57+
# - cmake --build build
58+
59+
60+
# test_cuda_sycl:
61+
# stage: test
62+
# tags: [docker-gpu-nvidia]
63+
# variables:
64+
# SYCL_DEVICE_FILTER: "cuda"
65+
# image: ghcr.io/acts-project/ubuntu1804_cuda_oneapi:v18
66+
# needs:
67+
# - build_cuda_sycl
68+
# script:
69+
# - cd build
70+
# - export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH"
71+
# - ldd bin/vecmem_test_sycl
72+
# - nvidia-smi
73+
# - sycl-ls
74+
# - ctest --output-on-failure -R ".*sycl.*"

0 commit comments

Comments
 (0)