1- name : Build mkl-service with clang
1+ name : Build project with IntelLLVM clang compiler
22
33on :
44 push :
@@ -10,9 +10,11 @@ permissions: read-all
1010
1111jobs :
1212 build-with-clang :
13- name : Build project with IntelLLVM clang compiler
1413 runs-on : ubuntu-latest
1514
15+ strategy :
16+ matrix :
17+ python : ["3.9", "3.10", "3.11", "3.12"]
1618 env :
1719 ONEAPI_ROOT : /opt/intel/oneapi
1820
3941 - name : Setup Python
4042 uses : actions/setup-python@v5
4143 with :
42- python-version : ' 3.12 '
44+ python-version : ${{ matrix.python }}
4345 architecture : x64
4446
4547 - name : Checkout repo
5052 - name : Install mkl-service dependencies
5153 shell : bash -l {0}
5254 run : |
53- pip install numpy cython setuptools pytest pytest-cov
55+ pip install cython setuptools pytest
5456
5557 - name : List oneAPI folder content
5658 shell : bash -l {0}
@@ -61,15 +63,14 @@ jobs:
6163 run : |
6264 source /opt/intel/oneapi/setvars.sh
6365 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
6668 export CFLAGS="${CFLAGS} -fno-fast-math"
67- echo "CC = ${CC} CXX=${CXX}"
68- ls -l ${CC} ${CXX}
6969 python setup.py develop
7070
7171 - name : Run mkl_random tests
7272 shell : bash -l {0}
7373 run : |
7474 source /opt/intel/oneapi/setvars.sh
75+ pip install pytest
7576 pytest -s -v --pyargs mkl
0 commit comments