-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.08 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
name: CI kernels
on: [push, pull_request]
jobs:
setup:
strategy:
matrix:
os: [ubuntu-latest, devcloud] # self-hosted CPU runner on Intel devcloud
runs-on: ${{ matrix.os }}
# name should be "Run all kernels (CPU)" or "Run all kernels (GPU)" depending on matrix.os
name: Run all kernels ( if matrix.os == 'devcloud' then "GPU" else "CPU")
steps:
- uses: actions/checkout@v3
# run this only if we are NOT on devcloud
- name: Install oneAPI
if: matrix.os == 'ubuntu-latest'
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
run: |
cd dev/sycl
make CC=icx
- name: Run kernels
run: |
cd dev/sycl
make run_all CC=icx