1
- name : Build mkl-service with clang
1
+ name : Build project with IntelLLVM clang compiler
2
2
3
3
on :
4
4
push :
@@ -10,12 +10,19 @@ 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.10", "3.11", "3.12"] # 3.9 fails - gh-issue#56
18
+
16
19
env :
17
20
ONEAPI_ROOT : /opt/intel/oneapi
18
21
22
+ defaults :
23
+ run :
24
+ shell : bash -el {0}
25
+
19
26
steps :
20
27
- name : Cancel Previous Runs
21
28
39
46
- name : Setup Python
40
47
uses : actions/setup-python@v5
41
48
with :
42
- python-version : ' 3.12 '
49
+ python-version : ${{ matrix.python }}
43
50
architecture : x64
44
51
45
52
- name : Checkout repo
@@ -48,28 +55,25 @@ jobs:
48
55
fetch-depth : 0
49
56
50
57
- name : Install mkl-service dependencies
51
- shell : bash -l {0}
52
- run : |
53
- pip install numpy cython setuptools pytest pytest-cov
58
+ uses : BSFishy/pip-action@v1
59
+ with :
60
+ packages : |
61
+ cython
62
+ setuptools
63
+ pytest
54
64
55
65
- name : List oneAPI folder content
56
- shell : bash -l {0}
57
- run : ls /opt/intel/oneapi/compiler
66
+ run : ls ${{ env.ONEAPI_ROOT }}/compiler
58
67
59
68
- name : Build mkl-service
60
- shell : bash -l {0}
61
69
run : |
62
- source /opt/intel/oneapi /setvars.sh
70
+ source ${{ env.ONEAPI_ROOT }} /setvars.sh
63
71
echo $CMPLR_ROOT
64
- export CC=$CMPLR_ROOT/bin/compiler/clang
65
- export CXX=$CMPLR_ROOT/bin/compiler/clang++
72
+ export CC=$CMPLR_ROOT/bin/icx
66
73
export CFLAGS="${CFLAGS} -fno-fast-math"
67
- echo "CC = ${CC} CXX=${CXX}"
68
- ls -l ${CC} ${CXX}
69
74
python setup.py develop
70
75
71
- - name : Run mkl-service tests
72
- shell : bash -l {0}
76
+ - name : Run mkl-service tests
73
77
run : |
74
- source /opt/intel/oneapi /setvars.sh
78
+ source ${{ env.ONEAPI_ROOT }} /setvars.sh
75
79
pytest -s -v --pyargs mkl
0 commit comments