Skip to content

Commit c0ce3b7

Browse files
author
Vahid Tavanashad
committed
add python matrix to build with clang
1 parent 7f2a181 commit c0ce3b7

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

.github/workflows/build-with-clang.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build mkl-service with clang
1+
name: Build project with IntelLLVM clang compiler
22

33
on:
44
push:
@@ -10,9 +10,11 @@ permissions: read-all
1010

1111
jobs:
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.10", "3.11", "3.12"] # 3.9 fails - gh-issue#56
1618
env:
1719
ONEAPI_ROOT: /opt/intel/oneapi
1820

@@ -39,7 +41,7 @@ jobs:
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
@@ -50,26 +52,25 @@ jobs:
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}
5759
run: ls /opt/intel/oneapi/compiler
5860

59-
- name: Build mkl_random
61+
- name: Build mkl-service
6062
shell: bash -l {0}
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
71-
- name: Run mkl_random tests
71+
- name: Run mkl-service 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

.github/workflows/conda-package.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
matrix:
2323
python: ["3.9", "3.10", "3.11", "3.12"]
2424
steps:
25+
- name: Cancel Previous Runs
26+
uses: styfle/[email protected]
27+
with:
28+
access_token: ${{ github.token }}
29+
2530
- uses: actions/[email protected]
2631
with:
2732
fetch-depth: 0
@@ -71,6 +76,11 @@ jobs:
7176
env:
7277
conda-bld: C:\Miniconda\conda-bld\win-64\
7378
steps:
79+
- name: Cancel Previous Runs
80+
uses: styfle/[email protected]
81+
with:
82+
access_token: ${{ github.token }}
83+
7484
- uses: actions/[email protected]
7585
with:
7686
fetch-depth: 0

0 commit comments

Comments
 (0)