1
- name : Build mkl-service with clang
1
+ name : Build project with IntelLLVM clang compiler
2
2
3
3
on :
4
4
push :
@@ -10,9 +10,11 @@ permissions: read-all
10
10
11
11
jobs :
12
12
build-with-clang :
13
- name : Build project with IntelLLVM clang compiler
14
13
runs-on : ubuntu-latest
15
14
15
+ strategy :
16
+ matrix :
17
+ python : ["3.9", "3.10", "3.11", "3.12"]
16
18
env :
17
19
ONEAPI_ROOT : /opt/intel/oneapi
18
20
39
41
- name : Setup Python
40
42
uses : actions/setup-python@v5
41
43
with :
42
- python-version : ' 3.12 '
44
+ python-version : ${{ matrix.python }}
43
45
architecture : x64
44
46
45
47
- name : Checkout repo
50
52
- name : Install mkl-service dependencies
51
53
shell : bash -l {0}
52
54
run : |
53
- pip install numpy cython setuptools pytest pytest-cov
55
+ pip install cython setuptools pytest
54
56
55
57
- name : List oneAPI folder content
56
58
shell : bash -l {0}
@@ -61,15 +63,14 @@ jobs:
61
63
run : |
62
64
source /opt/intel/oneapi/setvars.sh
63
65
echo $CMPLR_ROOT
64
- export CC=$CMPLR_ROOT/bin/compiler/clang
65
- export CXX=$CMPLR_ROOT/bin/compiler/clang++
66
+ export CC=$CMPLR_ROOT/bin/icx
67
+ export CXX=$CMPLR_ROOT/bin/icpx
66
68
export CFLAGS="${CFLAGS} -fno-fast-math"
67
- echo "CC = ${CC} CXX=${CXX}"
68
- ls -l ${CC} ${CXX}
69
69
python setup.py develop
70
70
71
71
- name : Run mkl_random tests
72
72
shell : bash -l {0}
73
73
run : |
74
74
source /opt/intel/oneapi/setvars.sh
75
+ pip install pytest
75
76
pytest -s -v --pyargs mkl
0 commit comments