Skip to content

Conversation

xuhancn
Copy link
Collaborator

@xuhancn xuhancn commented Aug 22, 2025

@xuhancn xuhancn added module: windows Windows support for PyTorch ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category intel This tag is for PR from Intel labels Aug 22, 2025
Copy link

pytorch-bot bot commented Aug 22, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 8e255d2 with merge base 595987d (image):
💚 Looks good so far! There are no failures yet. 💚

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


if config.aot_inductor.enable_lto and _is_clang(cpp_compiler):
cflags.append("flto=thin")
if _IS_WINDOWS:
Copy link
Contributor

Choose a reason for hiding this comment

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

could we simplify it to be, "if _IS_WINDOWS or sys.platform == "darwin", pass else ...."?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

could we simplify it to be, "if _IS_WINDOWS or sys.platform == "darwin", pass else ...."?

Your suggestion may break fb_code. I wrote this code with a lot failed on fb_code, so I prefered current code.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Windows is totally different to UNIX like OSs. Current code is also make sense.

@xuhancn
Copy link
Collaborator Author

xuhancn commented Aug 22, 2025

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@xuhancn xuhancn deleted the xu_fix_march=native_pass_to_Windows_cc branch August 22, 2025 18:39
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
fix march=native pass to Windows CC.

<img width="593" height="218" alt="image" src="https://github.com/user-attachments/assets/1caedffa-d9be-43d9-9ce2-590c055980cd" />

Pull Request resolved: pytorch#161264
Approved by: https://github.com/angelayi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request intel This tag is for PR from Intel Merged module: inductor module: windows Windows support for PyTorch open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants