-
Notifications
You must be signed in to change notification settings - Fork 221
136 lines (128 loc) · 5.17 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
132
133
134
135
136
#===============================================================================
# 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: LinuxMakeDPCPP(AVX2)
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
- name: Make onedal
run: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/build.sh --compiler icx --optimizations avx2 --target onedal
- 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
- name: daal/cpp examples
run: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/test.sh --test-kind examples --build-dir __release_lnx --compiler icx --interface daal/cpp --build-system cmake
- name: oneapi/cpp examples
run: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/test.sh --test-kind examples --build-dir __release_lnx --compiler icx --interface oneapi/cpp --build-system cmake
- name: oneapi/dpc examples
run: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/test.sh --test-kind examples --build-dir __release_lnx --compiler icx --interface oneapi/dpc --build-system cmake
- name: daal/cpp/mpi examples
run: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/test.sh --test-kind samples --build-dir __release_lnx --compiler gnu --interface daal/cpp/mpi --conda-env ci-env --build-system cmake
LinuxABICheck:
name: ABI Conformance
needs: LinuxMakeDPCPP
if: |
github.repository == 'uxlfoundation/oneDAL' &&
github.event_name == 'pull_request' &&
! contains(toJson(github.event.pull_request.labels.*.name), '"API/ABI breaking change"')
runs-on: ubuntu-24.04
env:
LIBABIGAIL_DEFAULT_USER_SUPPRESSION_FILE: ${{ github.workspace }}/.github/.abignore
timeout-minutes: 20
steps:
- name: Checkout oneDAL
uses: actions/checkout@v4
- name: install ABI checking tools
run: .ci/env/apt.sh abigail
- 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: Download oneDAL build artifact
uses: actions/download-artifact@v4
with:
name: __release_lnx
path: ./__release_lnx
- name: Check ABI conformance
run: .ci/scripts/abi_check.sh __release_lnx_main/daal/latest/lib/intel64/ __release_lnx/daal/latest/lib/intel64/