pytorch / executorch

On-device AI across mobile, embedded and edge for PyTorch
https://pytorch.org/executorch/
Other
2.2k stars 368 forks source link

Windows x64 Build Support #6979

Open vortex-captain opened 2 days ago

vortex-captain commented 2 days ago

Summary

This PR introduces support for out-of-the-box builds on Windows x64, simplifying the setup process for developers using executorch on Windows. Additionally, it lays the groundwork for future Windows build pipelines and prebuilt PyPI packages.

Fixes #4661

Test plan

PR tested by running minimal executor_runner example (https://pytorch.org/executorch/stable/getting-started-setup.html#run-your-program) in the following environment:

Steps:

# run the following in Developer PowerShell for VS 2022
cd executorch/  # contains code of this PR
./install_requirements.bat
Remove-Item -Path "add.pte" -ErrorAction SilentlyContinue
python .\export_add.py  # export_add.py from https://pytorch.org/executorch/stable/getting-started-setup.html#export-a-program
msbuild pip-out\temp.win-amd64-cpython-310\cmake-out\executorch.sln /t:Rebuild
pip-out\temp.win-amd64-cpython-310\cmake-out\Debug\executor_runner.exe --model-path add.pte

References

https://github.com/pytorch/executorch/pull/4681

pytorch-bot[bot] commented 2 days ago

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6979

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

:heavy_exclamation_mark: 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

:white_check_mark: No Failures

As of commit 6c9bc9ec4df8692bb8c020d753b9350df72a984d with merge base 97b58bb84607ba4270c686356181c37feccf82eb (image): :green_heart: Looks good so far! There are no failures yet. :green_heart:

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

pytorch-bot[bot] commented 1 day ago

❌ 🤖 pytorchbot command failed:

@pytorchbot: error: argument command: invalid choice: 'Release' (choose from 'merge', 'revert', 'rebase', 'label', 'drci', 'cherry-pick', 'close')

usage: @pytorchbot [-h] {merge,revert,rebase,label,drci,cherry-pick,close} ...

Try @pytorchbot --help for more info.

vortex-captain commented 1 day ago

@pytorchbot label "Release notes: build"

pytorch-bot[bot] commented 1 day ago

Didn't find following labels among repository labels: Release notes: build

vortex-captain commented 1 day ago

@pytorchbot label "release notes: build"

vortex-captain commented 1 day ago

Hi @kirklandsign and @dbort! Could you kindly help assign reviewers to this PR? Many thanks!

vortex-captain commented 6 hours ago

Hi @dbort I attempted to address the issues in the checks, could you kindly help rerun them? Thanks 😄