-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (62 loc) · 1.48 KB
/
ci-dev.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
name: CI kernels
on: [push, pull_request]
jobs:
diff:
runs-on: ubuntu-latest
outputs:
sycl_changed: ${{ steps.filter.outputs.sycl_changed }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
sycl_changed:
- 'dev/sycl/**'
gpu:
needs: diff
runs-on: devcloud # self-hosted GPU runner on Intel devcloud
name: Run all kernels (GPU)
if: needs.diff.outputs.sycl_changed == 'true'
steps:
- uses: actions/checkout@v4
- name: Build kernels (GPU)
run: |
cd dev/sycl
make CC=icx
- name: Run kernels (GPU)
run: |
cd dev/sycl
make run_all CC=icx
cpu:
needs: diff
runs-on: ubuntu-latest
name: Run all kernels (CPU)
if: needs.diff.outputs.sycl_changed == 'true'
steps:
- uses: actions/checkout@v4
- name: Install OneAPI
uses: rscohn2/setup-oneapi@v0
with:
list: true
components: |
icx
ifx
ccl
dnn
dpl
ippcp
mkl
tbb
- name: Setup variables
run: |
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
- name: Build kernels (CPU)
run: |
cd dev/sycl
make CC=icx
- name: Run kernels (CPU)
run: |
cd dev/sycl
make run_all CC=icx