Skip to content

drop win-x86, use newer build tools on win-x86_64 - #293

Draft
mattip wants to merge 16 commits into
MacPython:mainfrom
mattip:update-rtools
Draft

mattip wants to merge 16 commits into
MacPython:mainfrom
mattip:update-rtools

Conversation

@mattip

@mattip mattip commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator
  • I updated the package version in pyproject.toml and made sure the first 3 numbers match ./openblas_commit.txt. If I did not update ./openblas_commit.txt, I incremented the wheel build number (i.e. 0.3.29.0.0 to 0.3.29.0.1)

@mattip

mattip commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

Apparently ubuntu-latest is 26.04, which ships a broken docker version actions/runner-images#14790

@mattip mattip changed the title drop win-x86, use rtools4.5 drop win-x86, use newer build tools on win-x86_64 Nov 18, 2026
@mattip

mattip commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

Since we are now using flang, not gfortran, the license needs to reflect that: llvm apache with a static link exception. Also trying to figure out why the dlls are bigger now 21mb with gcc/gfortran, 27mb with clang/flang

@rgommers

Copy link
Copy Markdown
Collaborator

Hmm that's a large difference - too much for comfort.

@mattip

mattip commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator Author

The wheels are the same size. The dll difference seems to be unused space in the .text section /O3 on flang rather than /O2 on gfortran that zips down to nothing when building the wheel. If anything, the llvm-produced wheels are smaller than the gcc-produced ones, even though the dll is much larger.

@mattip
mattip marked this pull request as draft November 20, 2026 05:37
@mattip

mattip commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

yes, changing flang build to /O2 dropped the dll size to within 1% of gfortran/gcc. So now there are some artifacts worth testing.

@mattip

mattip commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

Fixes #292

@rgommers

Copy link
Copy Markdown
Collaborator

Ah great, that solves the size issue then. The LGPL -> Apache 2.0 change is probably fine, just needs some updates in the numpy/scipy-release repos.

@mattip

mattip commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

So now I have improved both the gcc/gfortran workflow and the clang/flang one. I don't know which to choose.

@rgommers rgommers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

So now I have improved both the gcc/gfortran workflow and the clang/flang one. I don't know which to choose.

I think both license-wise and future-maintenance wise, Clang-cl + Flang on all platforms will be preferable. If both work now and are roughly equivalent in binary size and performance, then Flang is likely to improve more. And the toolchain is better than messing with rtools/chocolatey.

Comment thread tools/LICENSE_win_flang.txt Resolved
Comment thread .github/workflows/windows-arm.yml Resolved
- { os: windows-latest, PLAT: x86_64, WHEEL_PLAT: win_amd64, PY_ARCH: x64, LLVM_ASSET: win64, NINJA_ASSET: win, INTERFACE64: '0' }
- { os: windows-latest, PLAT: x86_64, WHEEL_PLAT: win_amd64, PY_ARCH: x64, LLVM_ASSET: win64, NINJA_ASSET: win, INTERFACE64: '1' }
- { os: windows-11-arm, PLAT: arm64, WHEEL_PLAT: win_arm64, PY_ARCH: arm64, LLVM_ASSET: woa64, NINJA_ASSET: winarm64, INTERFACE64: '0' }
- { os: windows-11-arm, PLAT: arm64, WHEEL_PLAT: win_arm64, PY_ARCH: arm64, LLVM_ASSET: woa64, NINJA_ASSET: winarm64, INTERFACE64: '1' }

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

NINJA_ASSET here can also be cleaned up, no longer used

Comment thread CHANGELOG.md

### 0.3.34.481.4 (2026-11-19)

- Drop 32-bit windows wheels, update rtools

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This will still need an update before merging, mentioning the switch to Clang-cl/Flang.

@rgommers

Copy link
Copy Markdown
Collaborator

That all seems pretty happy!

This branch has not been deployed

No deployments
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.

2 participants