Skip to content

Fix XNNPACK build on Windows - #13259

Merged
GregoryComer merged 43 commits into
gh/GregoryComer/141/headfrom
gh/GregoryComer/117/head
Aug 26, 2025
Merged

Fix XNNPACK build on Windows#13259
GregoryComer merged 43 commits into
gh/GregoryComer/141/headfrom
gh/GregoryComer/117/head

Conversation

@GregoryComer

@GregoryComerGregoryComer commented Aug 9, 2025

Copy link
Copy Markdown
Contributor

Fix a few build-blocking issues on Windows. Enable XNNPACK on the Windows preset. This also gives CI coverage.

I've disabled 4 microkernel families that don't build currently. These likely need to be gated or fixed upstream, but I'm disabling them locally for now to unblock usage. They are relatively niche and should have little to no perf impact on the average user.

GregoryComerand others added 11 commits August 8, 2025 14:44
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@pytorch-bot

pytorch-botBot commented Aug 9, 2025

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13259

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 44 Pending

As of commit 4dd225a with merge base 484ed13 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

GregoryComer added a commit that referenced this pull request Aug 9, 2025
ghstack-source-id: cf9cd1c
ghstack-comment-id: 3172080268
Pull-Request: #13259
@meta-clameta-claBot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 9, 2025
@GregoryComer
GregoryComer marked this pull request as ready for review August 9, 2025 21:12
GregoryComerand others added 7 commits August 9, 2025 20:12
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Base automatically changed from gh/GregoryComer/115/head to mainAugust 25, 2025 22:53
[ghstack-poisoned]
@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

[ghstack-poisoned]
@GregoryComer
GregoryComer changed the base branch from main to gh/GregoryComer/141/headAugust 25, 2025 23:59
[ghstack-poisoned]
@GregoryComer
GregoryComer merged commit 472df91 into gh/GregoryComer/141/headAug 26, 2025
@GregoryComer
GregoryComer deleted the gh/GregoryComer/117/head branch August 26, 2025 00:12
@GregoryComer

Copy link
Copy Markdown
ContributorAuthor

I'm not sure, why ghstack merged this when re-ordering PRs. I'll re-open as a new PR.

GregoryComer added a commit that referenced this pull request Aug 27, 2025
…t build CI job (#13702)
**Note: This is a cherry-pick of
#13564 and
#13259. I inadvertently broke
the ghstack when attempting to re-order the stack, leading to the old PR
being merged by ghstack into the ghstack-created branch (not main).**
Add mman_windows.cpp to the CMake sources. Fix a few build-blocking
issues with XNNPACK on Windows. Enable XNNPACK on the Windows preset.
This also gives CI coverage.
I've disabled 4 microkernel families that don't build currently. These
likely need to be gated or fixed upstream, but I'm disabling them
locally for now to unblock usage. They are relatively niche and should
have little to no perf impact on the average user.
With this change, the pybind preset works and we can re-enable it in CI.
@GregoryComerGregoryComer mentioned this pull request Aug 28, 2025
20 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@GregoryComer@jathu