GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Refactor CI to produce 64-bit integer interface wheels for WoA by Harishmcw · Pull Request #199 · MacPython/openblas-libs

Conversation

@Harishmcw

@Harishmcw Harishmcw commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

This PR refactors the CI workflow to use a matrix strategy for building both 32-bit and 64-bit integer interface wheels for Windows-on-ARM (WoA).

  • Simplifies the workflow and avoids code duplication.

  • Ensures both 32-bit and 64-bit integer interface wheels are produced for WoA.

  • I updated the version in pyproject.toml and made sure it matches git describe --tags --abbrev=8 in OpenBLAS at the OPENBLAS_COMMIT

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Harishmcw
Refactor CI to produce 64-bit integer interface wheels for WoA
d1bcf29
@Harishmcw

Harishmcw commented Jun 3, 2025

Copy link
Copy Markdown
Contributor Author

Hi @mattip and @matthew-brett ,

This updated WoA CI script now also generates the 64-bit integer interface wheel, which we can use to build NumPy for Windows-on-ARM.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

matthew-brett
matthew-brett reviewed Jun 3, 2025
View reviewed changes
Comment thread .github/workflows/windows-arm.yml
strategy:
matrix:
include:
- INTERFACE64: 1

@matthew-brett matthew-brett Jun 3, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Is anyone using 32-but builds of Python for Windows on ARM?

If so, I guess we do need the INTERFACE64=0; BUILD_BITS=32 option. But I guess we also need an INTERFACE64=0; BUILD_BITS=64 option, for people building Numpy or Scipy with 32-bit interfaces, but 64-bit builds.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@rgommers rgommers Jun 3, 2025

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

No, 32-bit Python for Windows on ARM is not a thing, there's only win_arm64.

We do need LP64 (scipy-openblas32 ) and ILP64 (scipy-openblas64) wheels though, that's orthogonal to interpreter bitness.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

matthew-brett and Harishmcw reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

@matthew-brett matthew-brett Jun 4, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

If so, I guess we do need the INTERFACE64=0; BUILD_BITS=32 option. But I guess we also need an INTERFACE64=0; BUILD_BITS=64 option, for people building Numpy or Scipy with 32-bit interfaces, but 64-bit builds.

Maybe I was incorrect here - but my comment was meant to say that we do not want or need a INTERFACE64=0; BUILD_BITS=32 build - as we have here, but we do want and need an INTERFACE64=0; BUILD_BITS=64 option, that I think we do not have.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@mattip mattip Jun 5, 2025

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Maybe the matrix/environment variables needs improvement. Both wheels can be imported by 64-bit python win-arm64.

The "32-bit" build uses INTERFACE64: 0, BUILD_BITS: 32. It prints Building for 64-bit binary, 32-bit interface at the beginning of thebuild step, and later prints out Compiling a 64-bit binary

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@Harishmcw Harishmcw Jun 5, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Hi @matthew-brett,

Just to clarify:

  • In our workflow, BUILD_BITS does not refer to the binary architecture — it always builds 64-bit binaries for WoA. Instead, BUILD_BITS maps to the integer interface width used by OpenBLAS:

  • INTERFACE64=0 → 32-bit integer interface → BUILD_BITS=32 → scipy_openblas32

  • INTERFACE64=1 → 64-bit integer interface → BUILD_BITS=64 → scipy_openblas64

So we already have both:

  • INTERFACE64=0; BUILD_BITS=32 (LP64)
  • INTERFACE64=1; BUILD_BITS=64 (ILP64)

We use the BUILD_BITS variable purely as a naming and testing label — as seen here in the CI script:
windows-arm.yml#L76-L80

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@matthew-brett matthew-brett Jun 5, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Shouldn't we then remove BUILD_BITS on the basis that it's confusing, and have some variable like INTERFACE_BITS set internally to 32 for INTERFACE64=0 etc?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Harishmcw reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@mattip
mattip merged commit a9daa2a into MacPython:main Jun 4, 2025
@mattip

mattip commented Jun 4, 2025

Copy link
Copy Markdown
Collaborator

Thanks @Harishmcw. Once the wheels are uploaded to PyPI we can consider using scipy-openblas64 in NumPy.

Harishmcw reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mattip

mattip commented Jun 5, 2025

Copy link
Copy Markdown
Collaborator

I uploaded the 64-bit wheel. The next step is a PR to numpy/numpy to redo the win-arm64 wheel build to use it (simplifying the logic in tools/wheels/cibw_before_build.sh closer to what it was before numpy/numpy#29039) and releasing the condition on requirements/ci_requirements.txt.

Harishmcw reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@matthew-brett matthew-brett matthew-brett left review comments
@rgommers rgommers rgommers left review comments
@mattip mattip mattip left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@Harishmcw @mattip @matthew-brett @rgommers
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.