Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e40ef5a
Update umath patching
ndgrigorian Mar 10, 2026
4d0d6f0
move mkl_umath build system to meson
ndgrigorian Mar 1, 2026
8bd2699
add tests to module
ndgrigorian Mar 4, 2026
70d3ce5
exclude process_src_template from linting
ndgrigorian Mar 4, 2026
6a8786f
add python-build to meta.yamls
ndgrigorian Mar 4, 2026
c81ae5c
fix syntax in build shell scripts
ndgrigorian Mar 4, 2026
5dd80ee
update build_pip workflow
ndgrigorian Mar 4, 2026
2fe6373
update clang workflow
ndgrigorian Mar 5, 2026
084953a
fix import error in builds
ndgrigorian Mar 5, 2026
e7bba53
update Windows build scripts
ndgrigorian Mar 5, 2026
a0cdf83
fix linting
ndgrigorian Mar 5, 2026
adde618
add conda-package-cf workflow
ndgrigorian Mar 5, 2026
32372a4
fix flags on windows builds
ndgrigorian Mar 5, 2026
28758ee
add python-gil to run requirements when building on conda-forge
ndgrigorian Mar 5, 2026
3540484
fix conda-forge workflow build matrices
ndgrigorian Mar 5, 2026
ddc5574
use stdlib('c') in conda-forge meta.yaml
ndgrigorian Mar 5, 2026
abe631b
fix typo in bld.bat
ndgrigorian Mar 5, 2026
cce6f53
remove intel-openmp dependency on conda-forge
ndgrigorian Mar 5, 2026
7076a2b
add pip to meta.yamls
ndgrigorian Mar 5, 2026
8c0e968
apply actions linting to conda-package-cf
ndgrigorian Mar 5, 2026
10a4cd0
ignore git blame of previous commit fixing linting
ndgrigorian Mar 5, 2026
4a18e33
fix race condition in meson build
ndgrigorian Mar 6, 2026
89a3354
clean up windows build workflows
ndgrigorian Mar 9, 2026
15705ad
add nodelete linker flag and show core dump
ndgrigorian Mar 10, 2026
d8d929e
test setting env vars to not use TBB
ndgrigorian Mar 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ extend-ignore =
D102,
# missing docstring in public function:
D103,
# missing docstring in public package:
D104,
# missing docstring in __init__:
D107,
# 1 blank line required between summary line and description:
Expand All @@ -26,7 +28,9 @@ per-file-ignores =
mkl_umath/ufunc_docstrings_numpy1.py: E501
mkl_umath/ufunc_docstrings_numpy2.py: E501

exclude = _vendored/conv_template.py
exclude =
_vendored/conv_template.py
_vendored/process_src_template.py

filename = *.py, *.pyx, *.pxi, *.pxd
max_line_length = 80
Expand Down
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@

# added more linters
3a3df3fae1574558973e3829368dc8a7b9c76ad9

# fix linting in conda-package-cf
f94f488ce98e06e5ffab1ce02ecd525b1680726c
14 changes: 10 additions & 4 deletions .github/workflows/build-with-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
permissions: read-all

jobs:
build-with-clang:
build-with-intel-clang:
runs-on: ubuntu-latest

strategy:
Expand Down Expand Up @@ -43,6 +43,10 @@ jobs:
sudo apt-get install intel-oneapi-tbb
sudo apt-get install intel-oneapi-mkl-devel

- name: Install gdb (DEBUG)
run: |
sudo apt-get install gdb

- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
Expand All @@ -56,7 +60,7 @@ jobs:

- name: Install mkl_umath dependencies
run: |
pip install scikit-build cmake ninja cython setuptools">=77"
pip install meson-python ninja cython mkl-service
pip install ${{ matrix.numpy_version }}

- name: List oneAPI folder content
Expand All @@ -67,7 +71,6 @@ jobs:
source ${{ env.ONEAPI_ROOT }}/setvars.sh
echo "$CMPLR_ROOT"
export CC="$CMPLR_ROOT/bin/icx"
export CFLAGS="${CFLAGS} -fno-fast-math -O2"
pip install . --no-build-isolation --no-deps --verbose

- name: Run mkl_umath tests
Expand All @@ -77,4 +80,7 @@ jobs:
# mkl_umath cannot be installed in editable mode, we need
# to change directory before importing it and running tests
cd ..
python -m pytest -sv --pyargs mkl_umath/mkl_umath/tests
ulimit -c unlimited
python -m pytest -sv --pyargs mkl_umath || true
coredumpctl info --no-pager || true
coredumpctl gdb --debugger-arguments="-batch -ex 'thread apply all bt full' -ex quit" || true
76 changes: 76 additions & 0 deletions .github/workflows/build-with-standard-clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Build project with standard clang compiler

on:
pull_request:
push:
branches: [master]

permissions: read-all

jobs:
build-with-standard-clang:
runs-on: ubuntu-latest

strategy:
matrix:
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
numpy_version: ["numpy'>=2'"]

env:
COMPILER_ROOT: /usr/bin

defaults:
run:
shell: bash -el {0}

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@3155a141048f8f89c06b4cdae32e7853e97536bc # 0.13.0
with:
access_token: ${{ github.token }}

- name: Install Dependencies
run: |
sudo apt-get update && sudo apt-get install -y clang

- name: Install gdb (DEBUG)
run: |
sudo apt-get install gdb

- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python }}
architecture: x64

- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- name: Install mkl_umath dependencies
run: |
pip install meson-python ninja cython mkl-service
pip install mkl-devel tbb-devel
pip install ${{ matrix.numpy_version }}

- name: Build mkl_umath
run: |
export CC=${{ env.COMPILER_ROOT }}/clang
pip install . --no-build-isolation --no-deps --verbose

- name: Run mkl_umath
env:
MKL_THREADING_LAYER: GNU
MKL_SERVICE_FORCE_INTEL: "1"
OMP_NUM_THREADS: "1"
OPENBLAS_NUM_THREADS: "1"
run: |
pip install pytest
# mkl_umath cannot be installed in editable mode, we need
# to change directory before importing it and running tests
cd ..
ulimit -c unlimited
python -m pytest -sv --pyargs mkl_umath || true
coredumpctl info --no-pager || true
coredumpctl gdb --debugger-arguments="-batch -ex 'thread apply all bt full' -ex quit" || true
6 changes: 2 additions & 4 deletions .github/workflows/build_pip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,12 @@ jobs:
- name: Build conda package
run: |
pip install --no-cache-dir scikit-build cmake ninja cython
pip install --no-cache-dir meson-python ninja cython
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
echo "CONDA_PREFFIX is '${CONDA_PREFIX}'"
export MKLROOT=${CONDA_PREFIX}
CC=icx pip install . --no-build-isolation --no-deps --verbose
pip install --no-cache-dir pytest
pip list
# mkl_umath cannot be installed in editable mode, we need
# to change directory before importing it and running tests
cd ..
python -m pytest -v mkl_umath/mkl_umath/tests
python -m pytest -sv --pyargs mkl_umath
Loading
Loading