Skip to content

Add build option for ILP64 - #184

Open
ndgrigorian wants to merge 2 commits into
masterfrom
add-ilp64-build-option
Open

Add build option for ILP64#184
ndgrigorian wants to merge 2 commits into
masterfrom
add-ilp64-build-option

Conversation

@ndgrigorian

Copy link
Copy Markdown
Collaborator

This PR adds a meson.options file and adds a build option for ILP64.

With this option added, the definition of functions for initializing MKL with the ILP64 interface are gated by ifdefs, silencing a compiler warning

@ndgrigorian
ndgrigorian marked this pull request as ready for review April 13, 2026 16:18
@ndgrigorian
ndgrigorian force-pushed the add-ilp64-build-option branch 2 times, most recently from 7e1f82a to b06c721 Compare May 10, 2026 01:41
Base automatically changed from use-meson-build to master July 21, 2026 14:49
fixes compiler warning about unused function
Copilot AI lite review requested due to automatic review settings August 6, 2026 14:12
@ndgrigorian
ndgrigorian force-pushed the add-ilp64-build-option branch from b06c721 to cacc4ab Compare August 6, 2026 14:12
@antonwolfy antonwolfy added this to the 2.9.0 release milestone Aug 6, 2026
Comment thread meson.options

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a Meson build-time option to compile mkl-service against MKL’s ILP64 interface, and uses that option to conditionally compile the ILP64 vs LP64 init path in the Linux preload/init extension to avoid unused-function compiler warnings.

Changes:

  • Introduces a new Meson boolean option ilp64 in meson.options.
  • Wires -DMKL_ILP64 into the Meson c_args when the option is enabled.
  • Gates _set_mkl_ilp64() / _set_mkl_lp64() compilation and selection in mkl/_mklinitmodule.c.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
mkl/_mklinitmodule.c Conditionally compiles and selects ILP64 vs LP64 init helper to avoid unused code paths and warnings.
meson.options Adds a new ilp64 boolean build option.
meson.build Attempts to add -DMKL_ILP64 to compiler args when the option is enabled.

Comment thread meson.build
@ndgrigorian
ndgrigorian requested a review from antonwolfy August 6, 2026 15:21
@ndgrigorian

Copy link
Copy Markdown
Collaborator Author

CI failures are unrelated to PR content and are likely some kind of server issue

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