-
Notifications
You must be signed in to change notification settings - Fork 50
86 lines (82 loc) · 2.96 KB
/
builds.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
# TRACCC library, part of the ACTS project (R&D line)
#
# (c) 2021-2023 CERN for the benefit of the ACTS project
#
# Mozilla Public License Version 2.0
name: Builds
on:
push:
pull_request:
branches:
- main
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
builds:
name: ${{ matrix.platform.name }}-${{ matrix.build }}
runs-on: ubuntu-latest
container: ${{ matrix.platform.container }}
strategy:
matrix:
platform:
- name: CPU
container: ghcr.io/acts-project/ubuntu2004:v30
options:
- name: CPU
container: ghcr.io/acts-project/ubuntu2004:v30
options: -DTRACCC_USE_ROOT=FALSE
- name: CUDA
container: ghcr.io/acts-project/ubuntu2004_cuda:v30
options: -DTRACCC_BUILD_CUDA=TRUE
- name: KOKKOS
container: ghcr.io/acts-project/ubuntu2004:v30
options: -DTRACCC_BUILD_KOKKOS=TRUE
- name: ALPAKA
container: ghcr.io/acts-project/ubuntu2204:v33
options: -DTRACCC_BUILD_ALPAKA=TRUE
build:
- Release
- Debug
include:
- platform:
name: "SYCL"
container: "ghcr.io/acts-project/ubuntu2004_cuda_oneapi:v37"
options: -DTRACCC_BUILD_SYCL=TRUE -DTRACCC_BUILD_CUDA=FALSE -DVECMEM_BUILD_CUDA_LIBRARY=FALSE
build: Release
- platform:
name: "SYCL"
container: "ghcr.io/acts-project/ubuntu2004_rocm_oneapi:v37"
options: -DTRACCC_BUILD_SYCL=TRUE -DVECMEM_BUILD_HIP_LIBRARY=FALSE
build: Release
- platform:
name: "CUDA"
container: ghcr.io/acts-project/ubuntu2004_cuda:v30
options: -DTRACCC_BUILD_CUDA=TRUE -DTRACCC_ENABLE_NVTX_PROFILING=TRUE
build: Release
# Use BASH as the shell from the images.
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Download data files
run: data/traccc_data_get_files.sh
- name: Configure
run: |
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.platform.name }}
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build }} ${{ matrix.platform.options }} -DTRACCC_FAIL_ON_WARNINGS=TRUE -S ${GITHUB_WORKSPACE} -B build
- name: Build
run: |
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.platform.name }}
cmake --build build
- name: Test
if: "matrix.platform.name == 'CPU'"
run: |
cd build
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.platform.name }}
ctest --output-on-failure
- name: FP64 Compliance
if: "matrix.platform.name == 'CUDA' && matrix.build == 'Debug'"
continue-on-error: true
run: ${GITHUB_WORKSPACE}/.github/find_f64_ptx.py --source ${GITHUB_WORKSPACE} --build build $(find build -name "*.ptx")