-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (64 loc) · 1.72 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
72
73
74
75
name: CI kernels
on: [push, pull_request]
jobs:
check_changes:
runs-on: ubuntu-latest
outputs:
sycl_changed: ${{ steps.check_sycl_changes.outputs.sycl_changed }}
steps:
- uses: actions/checkout@v3
- name: Check if dev/sycl changed
id: check_sycl_changes
run: |
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q '^dev/sycl/'; then
echo "::set-output name=sycl_changed::true"
else
echo "::set-output name=sycl_changed::false"
fi
gpu:
needs: check_changes
runs-on: devcloud # self-hosted GPU runner on Intel devcloud
if: needs.check_changes.outputs.sycl_changed == 'true'
name: Run all kernels (GPU)
steps:
- uses: actions/checkout@v3
- 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: check_changes
runs-on: ubuntu-latest
if: needs.check_changes.outputs.sycl_changed == 'true'
name: Run all kernels (CPU)
steps:
- uses: actions/checkout@v3
- 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