Skip to content

Fix building and running on pre-2026 MKL versions#193

Merged
ndgrigorian merged 8 commits intomasterfrom
fix-for-old-mkl-versions
May 8, 2026
Merged

Fix building and running on pre-2026 MKL versions#193
ndgrigorian merged 8 commits intomasterfrom
fix-for-old-mkl-versions

Conversation

@ndgrigorian
Copy link
Copy Markdown
Collaborator

This PR adds a compatibility shim for old MKL versions (prior to removal of some CNR branches and ISA constants).

Also adds a workflow for OSX

Copilot AI review requested due to automatic review settings May 8, 2026 00:51
@ndgrigorian ndgrigorian force-pushed the fix-for-old-mkl-versions branch from e957904 to 658f656 Compare May 8, 2026 00:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to keep mkl-service building and testing cleanly across MKL versions around the 2026.0 API/constant churn (CNR branches + ISA constants), and adds a new macOS conda-forge workflow.

Changes:

  • Add a version-compatibility shim in the Cython declarations to tolerate MKL constants being added/removed across releases.
  • Update CNR/ISA handling and unit tests to version-gate legacy vs newly introduced branch/ISA names.
  • Add a new GitHub Actions workflow to build/test conda-forge packages on macOS.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
mkl/tests/test_mkl_service.py Version-gates CBWR branch/ISA tests based on the runtime MKL major version.
mkl/_mkl_service.pyx Conditionally exposes legacy CBWR branches/ISAs; updates CBWR auto-branch and instruction enable mappings.
mkl/_mkl_service.pxd Adds a C preprocessor shim to define missing MKL constants to sentinel values for cross-version builds.
conda-recipe/meta.yaml Adjusts mkl-devel host dependency selection for macOS builds.
.github/workflows/conda-package-cf-osx.yml Introduces a macOS conda-forge build/test workflow.

Comment thread mkl/_mkl_service.pyx
Comment thread mkl/_mkl_service.pyx
@ndgrigorian ndgrigorian force-pushed the fix-for-old-mkl-versions branch 3 times, most recently from f247abe to b559fbd Compare May 8, 2026 01:15
allows mkl-service to work with both old and new versions
@ndgrigorian ndgrigorian force-pushed the fix-for-old-mkl-versions branch 2 times, most recently from 5a48f02 to b91187a Compare May 8, 2026 01:37
ndgrigorian added a commit that referenced this pull request May 8, 2026
@ndgrigorian ndgrigorian mentioned this pull request May 8, 2026
Copy link
Copy Markdown
Collaborator

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general LGTM, the only small nits below:

Comment thread conda-recipe/meta.yaml Outdated
Comment thread .github/workflows/conda-package-cf-osx.yml Outdated
ndgrigorian added a commit that referenced this pull request May 8, 2026
@ndgrigorian ndgrigorian force-pushed the fix-for-old-mkl-versions branch from 2f3baeb to 44ef89d Compare May 8, 2026 05:16
@ndgrigorian ndgrigorian force-pushed the fix-for-old-mkl-versions branch from 44ef89d to 331d12f Compare May 8, 2026 05:43
@ndgrigorian ndgrigorian requested a review from antonwolfy May 8, 2026 05:53
Copy link
Copy Markdown
Collaborator

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @ndgrigorian

@ndgrigorian ndgrigorian merged commit ffd2f32 into master May 8, 2026
115 checks passed
@ndgrigorian ndgrigorian deleted the fix-for-old-mkl-versions branch May 8, 2026 20:06
ndgrigorian added a commit that referenced this pull request May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants