-
Notifications
You must be signed in to change notification settings - Fork 221
131 lines (123 loc) · 4.63 KB
/
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
#===============================================================================
# Copyright contributors to the oneDAL project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#===============================================================================
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
LinuxMakeDPCPP:
name: Linux Make Debug DPCPP
if: github.repository == 'uxlfoundation/oneDAL'
runs-on: uxl-gpu-4xlarge
timeout-minutes: 120
steps:
- name: Checkout oneDAL
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install DPC++
run: .ci/env/apt.sh dpcpp
- name: Install MKL
run: .ci/env/apt.sh mkl
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.9
# Miniforge is necessary in order to get Intel MPI from conda-forge for MPI examples
- name: Install Miniforge
run: .ci/env/apt.sh miniforge
- name: System Info
run: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/describe_system.sh
- name: Make daal
run: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/build.sh --compiler icx --optimizations avx2 --target daal --debug symbols
- name: Make onedal
run: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/build.sh --compiler icx --optimizations avx2 --target onedal --debug symbols
- name: Archive build
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: __release_lnx
path: ./__release_lnx
- name: Archive oneDAL environment
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: oneDAL_env
path: .ci/env
LinuxABICheck:
name: ABI Conformance
if: |
${{ github.repository == 'uxlfoundation/oneDAL' &&
github.event_name == 'pull_request' &&
!(github.event.action == 'labeled' &&
contains(toJson(github.event.pull_request.labels.*.name), '"API/ABI breaking change"')) }}
needs: LinuxMakeDPCPP
runs-on: ubuntu-24.04
timeout-minutes: 20
env:
release_: __release_lnx
release_main: __release_lnx_main
lib_dir: /daal/latest/lib/intel64
steps:
- name: Checkout oneDAL
uses: actions/checkout@v4
- name: install ABI checking tools
run: |
sudo apt-get install abigail-tools
- name: Get run ID of "CI" workflow
id: get-run-id
run: |
OTHER_REPO="uxlfoundation/oneDAL"
WF_NAME="CI"
JQ_QUERY='map(select(.event == "push")) | .[0].databaseId'
RUN_ID=`gh run --repo ${OTHER_REPO} list --workflow "${WF_NAME}" --json databaseId,event --status success --jq "${JQ_QUERY}"`
echo "Detected latest run id of ${RUN_ID} for workflow ${WF_NAME}"
echo "run-id=${RUN_ID}" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ github.token }}
- name: Download oneDAL main build artifact
uses: actions/download-artifact@v4
with:
name: __release_lnx
github-token: ${{ github.token }}
repository: uxlfoundation/oneDAL
run-id: ${{ steps.get-run-id.outputs.run-id }}
path: ./__release_lnx_main
- name: Restore oneDAL build artifact
uses: actions/download-artifact@v4
with:
name: __release_lnx
path: ./__release_lnx
- name: abidiff libonedal_dpc
run: |
abidiff $release$lib_dir/libonedal_dpc.so $release_main$lib_dir/libonedal_dpc.so
- name: abidiff libonedal_core
run: |
abidiff $release$lib_dir/libonedal_core.so $release_main$lib_dir/libonedal_core.so
- name: abidiff libonedal_parameters
run: |
abidiff $release$lib_dir/libonedal_parameters.so $release_main$lib_dir/libonedal_parameters.so