12
12
env :
13
13
ONEAPI_ROOT : /opt/intel/oneapi
14
14
GTEST_ROOT : /home/runner/work/googletest-1.13.0/install
15
+ # Use oneAPI compiler 2023 to work around an issue
16
+ USE_2023 : 1
15
17
16
18
steps :
17
19
- name : Cancel Previous Runs
@@ -27,11 +29,18 @@ jobs:
27
29
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
28
30
sudo apt-get update
29
31
30
- - name : Install Intel OneAPI
32
+ - name : Install Intel OneAPI 2023
33
+ if : env.USE_2023 == '1'
31
34
run : |
32
35
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-2023.2.1
33
36
sudo apt-get install intel-oneapi-tbb-2021.10.0
34
37
38
+ - name : Install latest Intel OneAPI
39
+ if : env.USE_2023 != '1'
40
+ run : |
41
+ sudo apt-get install intel-oneapi-compiler-dpcpp-cpp
42
+ sudo apt-get install intel-oneapi-tbb
43
+
35
44
- name : Install CMake and Ninja
36
45
run : |
37
46
sudo apt-get install ninja-build
81
90
run : |
82
91
pip install numpy"<1.26.0" cython setuptools pytest pytest-cov scikit-build cmake coverage[toml]
83
92
84
- - name : Build dpctl with coverage
93
+ - name : Build dpctl with coverage for oneAPI 2023
94
+ if : env.USE_2023 == '1'
95
+ shell : bash -l {0}
96
+ run : |
97
+ source /opt/intel/oneapi/setvars.sh
98
+ export ARGS="--compiler-root ${CMPLR_ROOT}"
99
+ export ARGS="${ARGS} --c-compiler ${CMPLR_ROOT}/linux/bin/icx"
100
+ export ARGS="${ARGS} --cxx-compiler ${CMPLR_ROOT}/linux/bin/icpx"
101
+ export ARGS="${ARGS} --bin-llvm ${CMPLR_ROOT}/linux/bin-llvm"
102
+ python scripts/gen_coverage.py ${ARGS}
103
+
104
+ - name : Build dpctl with coverage for default oneAPI
105
+ if : env.USE_2023 != '1'
85
106
shell : bash -l {0}
86
107
run : |
87
108
source /opt/intel/oneapi/setvars.sh
0 commit comments