-
Notifications
You must be signed in to change notification settings - Fork 292
67 lines (58 loc) · 1.86 KB
/
build-intel.yml
File metadata and controls
67 lines (58 loc) · 1.86 KB
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
name: build-intel
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Add oneAPI to apt
shell: bash
run: |
cd /tmp
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
- name: Install oneAPI basekit
shell: bash
run: |
sudo apt update
sudo apt install intel-basekit
- name: Check compiler
run: |
source /opt/intel/oneapi/setvars.sh
icpx --version
icx --version
- name: Configure
shell: bash
run: |
source /opt/intel/oneapi/setvars.sh
cmake -S . -B build \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DCMAKE_INSTALL_PREFIX=install \
-DCMAKE_CXX_COMPILER=icpx \
-DCMAKE_C_COMPILER=icx \
-DALL_TESTS=ON \
-DIntelDPCPP_DIR="/opt/intel/oneapi/compiler/latest/linux/cmake/SYCL" \
- name: Build
shell: bash
run: |
source /opt/intel/oneapi/setvars.sh
cmake --build build --parallel
# If the unit tests below are failing run to see details.
# - name: Unit Test
# shell: bash
# run: |
# source /opt/intel/oneapi/setvars.sh
# export SYCL_DEVICE_FILTER=opencl.cpu
# pwd
# ls
# ls build
# ls build/bin
# ./build/bin/unit_tests
- name: Test
shell: bash
run: |
source /opt/intel/oneapi/setvars.sh
export SYCL_DEVICE_FILTER=opencl.cpu
ctest --test-dir build --output-on-failure --timeout 300