1
- name : Build mkl_random with clang
1
+ name : Build project with IntelLLVM clang compiler
2
2
on :
3
3
pull_request :
4
4
push :
@@ -8,16 +8,20 @@ permissions: read-all
8
8
9
9
jobs :
10
10
build-with-clang :
11
- name : Build project with IntelLLVM clang compiler
12
11
runs-on : ubuntu-latest
13
12
14
13
strategy :
15
14
matrix :
16
15
python : ["3.9", "3.10", "3.11", "3.12"]
17
16
numpy_build_version : ["numpy'<2'", "numpy'>=2'"]
17
+
18
18
env :
19
19
ONEAPI_ROOT : /opt/intel/oneapi
20
20
21
+ defaults :
22
+ run :
23
+ shell : bash -el {0}
24
+
21
25
steps :
22
26
- name : Cancel Previous Runs
23
27
@@ -50,29 +54,25 @@ jobs:
50
54
fetch-depth : 0
51
55
52
56
- name : Install mkl_random dependencies
53
- shell : bash -l {0}
54
57
run : |
55
58
pip install cython setuptools pytest pytest-cov
56
59
pip install ${{ matrix.numpy_build_version }}
57
60
58
61
- name : List oneAPI folder content
59
- shell : bash -l {0}
60
- run : ls /opt/intel/oneapi/compiler
62
+ run : ls ${{ env.ONEAPI_ROOT }}/compiler
61
63
62
64
- name : Build mkl_random
63
- shell : bash -l {0}
64
65
run : |
65
- source /opt/intel/oneapi /setvars.sh
66
+ source ${{ env.ONEAPI_ROOT }} /setvars.sh
66
67
echo $CMPLR_ROOT
67
68
export CC=$CMPLR_ROOT/bin/icx
68
69
export CXX=$CMPLR_ROOT/bin/icpx
69
70
export CFLAGS="${CFLAGS} -fno-fast-math -O2"
70
71
python setup.py develop
71
72
72
73
- name : Run mkl_random tests
73
- shell : bash -l {0}
74
74
run : |
75
- source /opt/intel/oneapi /setvars.sh
75
+ source ${{ env.ONEAPI_ROOT }} /setvars.sh
76
76
# Test with NumPy<2 for now
77
77
pip install numpy"<2"
78
78
pytest -s -v --pyargs mkl_random
0 commit comments