Skip to content

[Windows] [file_data_loader.cpp] Add compat_unistd.h #8913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 5, 2025

Conversation

SamGondelman
Copy link
Contributor

Summary

This is the second PR in my attempt to get Windows support working. I've pulled the changes to file_data_loader.cpp from #7217 into their own PR and removed the other changes for now.

Test plan

No functional change since we aren't actually building Windows yet, just verify everything builds.

Copy link

pytorch-bot bot commented Mar 4, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit d7cbc98 with merge base 24671a9 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-bot 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 Mar 4, 2025
@SS-JIA SS-JIA added the release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc. label Mar 4, 2025
@SS-JIA
Copy link
Contributor

SS-JIA commented Mar 4, 2025

re: testing, I think CI is sufficient because there should be no change to existing build

@SS-JIA
Copy link
Contributor

SS-JIA commented Mar 4, 2025

@SamGondelman all tests pass which is good. However, there is a lint error; seems you need to remove whitespace at Line 21 of extension/data_loader/file_data_loader.cpp.

If you want to make managing lints easier, you can set up lintrunner by just installing it through pip

pip install lintrunner_adapters
pip install lintrunner

Then from repo source

lintrunner init
lintrunner lint --apply-patches --verbose

@SS-JIA SS-JIA merged commit f92ad9d into pytorch:main Mar 5, 2025
50 checks passed
@SamGondelman SamGondelman deleted the windows-file-data-loader branch March 5, 2025 20:10
zonglinpeng pushed a commit that referenced this pull request Mar 6, 2025
* fix windows build issue

* revert xnnpack cmakelist and fix file_data_loader

* fix lint warning

* undo non-relevant changes

* linter error - extra newline

---------

Co-authored-by: Chao Zhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants