Skip to content

Add missing ISA constants#175

Merged
ndgrigorian merged 3 commits intomasterfrom
add-missing-isa-constants
Apr 8, 2026
Merged

Add missing ISA constants#175
ndgrigorian merged 3 commits intomasterfrom
add-missing-isa-constants

Conversation

@ndgrigorian
Copy link
Copy Markdown
Collaborator

Adds missing ISA constants pointed out when dropping deprecated CNR constants

Also refactors enable_instructions test to (slightly) simplify this process in the future

@ndgrigorian ndgrigorian force-pushed the add-missing-isa-constants branch from a8d1aa7 to 9ca260c Compare April 8, 2026 16:48
ndgrigorian added a commit that referenced this pull request Apr 8, 2026
Base automatically changed from drop-removed-cbwr-constants to master April 8, 2026 17:17
also refactors enable_instructions test
@ndgrigorian ndgrigorian force-pushed the add-missing-isa-constants branch from a287b4e to b63c9c1 Compare April 8, 2026 17:18
Comment thread mkl/_mkl_service.pxd
Copilot AI review requested due to automatic review settings April 8, 2026 17:43
@ndgrigorian ndgrigorian requested a review from antonwolfy April 8, 2026 17:46
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 updates mkl-service’s Cython bindings and tests to recognize additional oneMKL instruction set architecture (ISA) and CNR/CBWR branch identifiers, addressing gaps found while removing deprecated CNR constants.

Changes:

  • Added avx10 support to CBWR (CNR) branch mappings (cbwr_set/cbwr_get/cbwr_get_auto_branch).
  • Added avx10 and avx512_e5 support to enable_instructions ISA mapping.
  • Refactored enable_instructions tests into a single parametrized test and expanded coverage to include the new ISA strings.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
mkl/tests/test_mkl_service.py Adds avx10 CBWR branches and refactors/extends enable_instructions tests via parametrization.
mkl/_mkl_service.pyx Extends string→MKL constant mappings for CBWR and ISA (avx10, avx512_e5).
mkl/_mkl_service.pxd Declares additional MKL header constants needed by the new mappings.
CHANGELOG.md Documents the newly supported ISA / CBWR strings in the dev changelog.

Comment thread mkl/_mkl_service.pxd
Comment thread mkl/_mkl_service.pxd
Comment thread CHANGELOG.md
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, LGTM!

@antonwolfy antonwolfy added this to the 2.7.0 release milestone Apr 8, 2026
@ndgrigorian ndgrigorian merged commit 1724a3d into master Apr 8, 2026
49 checks passed
@ndgrigorian ndgrigorian deleted the add-missing-isa-constants branch April 8, 2026 17:58
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