Repository navigation
Description
Describe the workflow you want to enable
Scikit-learn currently ships ARM64 Windows wheels built with MSVC. This proposal is to switch the Windows ARM64 wheel build to use clang-cl in the CI pipeline for improved performance and build reliability.
Initial scikit-learn implementation already exists
A working PR switching the win_arm64 CI wheel build to clang-cl was raised and demonstrates the change builds and passes tests successfully.
scikit-learn PR #33435
Motivation:
The need for clang-cl on Windows ARM64 is well documented across the ecosystem:
CPython acknowledged the ARM64 Windows performance gap
Python release binaries on ARM64 Windows show significantly lower performance compared to x64, traced to MSVC's weaker ARM64 auto-vectorisation. This is the upstream root cause that affects all Python packages built with MSVC on this platform.
python/cpython #134524
Community discussion on clang-cl for Windows ARM64
A dedicated thread on Python.org Ideas discusses using clang-cl to address the performance gap in Windows ARM64 Python packages, with broad agreement from the scientific Python community that LLVM is the right path forward for this platform.
Python.org Discussions
NumPy formally proposed and adopted clang-cl for win_arm64
NumPy raised this as an enhancement issue to provide Windows ARM64 wheels compiled with the LLVM toolchain, citing the same MSVC ARM64 vectorisation gap. This was subsequently implemented and NumPy now ships win_arm64 wheels built with clang-cl.
numpy/numpy #29174
numpy/numpy #28106
numpy/numpy PR #28246
NumPy and SciPy
scikit-learn's two core dependencies already ship win_arm64 wheelsbuilt with clang-cl.
Describe your proposed solution
Switch the win_arm64 CI wheel build from MSVC to clang-cl (LLVM). The change is scoped to Windows ARM64 only all other platforms (win_amd64, Linux, macOS) remain unchanged.
Test suite
All scikit-learn tests pass with the clang-cl build. The implementation includes a fix for a uint32_t redefinition that
occurs specifically with clang-cl on Windows.
Describe alternatives you've considered, if relevant
No response
Additional context
No response
Activity
priyadharshni-mcw commentedon Apr 20, 2026
The ASV benchmark results comparing both compilers on WOA and X86:
WOA Comparsions and X86 Comparisons
1.ensemble.RandomForestClassifierBenchmark.time_predict
2.linear_model.SGDRegressorBenchmark.time_fit
3. linear_model.RidgeBenchmark.time_predict
4.neighbors.KNeighborsClassifierBenchmark.time_fit
5.neighbors.KNeighborsClassifierBenchmark.time_predict
Summary:
Notes:
priyadharshni-mcw commentedon May 21, 2026
Hi, just following up on this issue and PR #33435 . We have added further investigation including a motivation for the change , benchmark results between x86 and ARM. Happy to provide any additional information if that would help move the review forward. Thank you for your time.