-
Notifications
You must be signed in to change notification settings - Fork 1
85 lines (76 loc) · 1.91 KB
/
sycl.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
name: sycl
on:
push:
pull_request:
schedule:
- cron: "22 22 * * 6"
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-sycl
cancel-in-progress: true
jobs:
Tests-gmake:
name: SYCL Tests & GNU Make
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Dependencies
run: |
.github/workflows/dependencies/dependencies_dpcpp.sh
- name: Tests
run: |
set +e
source /opt/intel/oneapi/setvars.sh
set -e
cd Tests/GPU
make -j4 USE_SYCL=TRUE
Tests-cmake:
name: SYCL Tests & CMake
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Dependencies
run: |
.github/workflows/dependencies/dependencies_dpcpp.sh
- name: Tests
run: |
set +e
source /opt/intel/oneapi/setvars.sh
set -e
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=../sycl_installdir \
-DENABLE_SYCL=ON \
-DCMAKE_CXX_COMPILER=icpx \
-DENABLE_TESTS=ON
make -j4 VERBOSE=ON
make install
Tutorials-cmake:
name: SYCL Tutorials & CMake
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Dependencies
run: |
.github/workflows/dependencies/dependencies_dpcpp.sh
- name: Tests
run: |
set +e
source /opt/intel/oneapi/setvars.sh
set -e
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=../sycl_installdir \
-DENABLE_SYCL=ON \
-DCMAKE_CXX_COMPILER=icpx
make -j4 VERBOSE=ON
make install
cd ../Tutorials/libamrexpr
mkdir build
cd build
cmake .. \
-DCMAKE_PREFIX_PATH=$(realpath ../../../sycl_installdir) \
-DENABLE_SYCL=ON \
-DCMAKE_CXX_COMPILER=icpx
make -j4 VERBOSE=ON