1- name : Build mkl_random with clang
1+ name : Build project with IntelLLVM clang compiler
22on :
33 pull_request :
44 push :
@@ -8,16 +8,20 @@ permissions: read-all
88
99jobs :
1010 build-with-clang :
11- name : Build project with IntelLLVM clang compiler
1211 runs-on : ubuntu-latest
1312
1413 strategy :
1514 matrix :
1615 python : ["3.9", "3.10", "3.11", "3.12"]
1716 numpy_build_version : ["numpy'<2'", "numpy'>=2'"]
17+
1818 env :
1919 ONEAPI_ROOT : /opt/intel/oneapi
2020
21+ defaults :
22+ run :
23+ shell : bash -el {0}
24+
2125 steps :
2226 - name : Cancel Previous Runs
2327@@ -50,29 +54,25 @@ jobs:
5054 fetch-depth : 0
5155
5256 - name : Install mkl_random dependencies
53- shell : bash -l {0}
5457 run : |
5558 pip install cython setuptools pytest pytest-cov
5659 pip install ${{ matrix.numpy_build_version }}
5760
5861 - name : List oneAPI folder content
59- shell : bash -l {0}
60- run : ls /opt/intel/oneapi/compiler
62+ run : ls ${{ env.ONEAPI_ROOT }}/compiler
6163
6264 - name : Build mkl_random
63- shell : bash -l {0}
6465 run : |
65- source /opt/intel/oneapi /setvars.sh
66+ source ${{ env.ONEAPI_ROOT }} /setvars.sh
6667 echo $CMPLR_ROOT
6768 export CC=$CMPLR_ROOT/bin/icx
6869 export CXX=$CMPLR_ROOT/bin/icpx
6970 export CFLAGS="${CFLAGS} -fno-fast-math -O2"
7071 python setup.py develop
7172
7273 - name : Run mkl_random tests
73- shell : bash -l {0}
7474 run : |
75- source /opt/intel/oneapi /setvars.sh
75+ source ${{ env.ONEAPI_ROOT }} /setvars.sh
7676 # Test with NumPy<2 for now
7777 pip install numpy"<2"
7878 pytest -s -v --pyargs mkl_random
0 commit comments