Fix setup.py to skip CPU kernels on Windows#3187
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3187
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 8036d0e with merge base 9266734 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
CI is broken. Failures are not related to this PR. |
|
@mingfeima Please review. Thanks. |
|
Hi @vkuzo @jerryzh168 @metascroy @mingfeima @Valentine233 Please review this PR. Thanks. |
|
Hi @vkuzo @jerryzh168 @metascroy Can you please review this PR? Thanks. |
1 similar comment
|
Hi @vkuzo @jerryzh168 @metascroy Can you please review this PR? Thanks. |
|
could you add a test plan detailing how this was tested for correctness? Thank you! |
Hi @vkuzo If there is a CI workflow that builds Torchao on Windows, this will be tested. Do you have a plan to enable that in CI? Thanks. |
|
Hi @vkuzo How do you think about adding Windows building in CI? Or do you have more suggestions? Thanks. |
|
Hi @metascroy @vkuzo @jerryzh168 @cpuhrsch @atalman @msaroufim @janeyx99 @drisspg Could you please review this PR? Thanks. |
|
yeah, I think having XPU in CI would help with more confidence on PRs like this one, it's not ideal to rely on other people testing the changes without a clear way to reproduce them |
The change is not about XPU but Windows. Do you mean Windows in CI? Do you have any suggestions on adding a workflow to test building on Windows? Thanks. |
|
Hi @vkuzo I understand setting up a workflow for Windows build in CI is not a simple task for you. We have verified this patch on our local machine. I have also update the summary above. Do you think we can land it now? Thanks. |
|
Hi @metascroy @vkuzo @jerryzh168 @cpuhrsch @atalman @msaroufim @janeyx99 @drisspg do you think we can land this now? Thanks. |
|
Hi @metascroy @vkuzo @jerryzh168 @cpuhrsch @atalman @msaroufim @janeyx99 @drisspg Would you mind if we land this now? Thanks. |
It's a bug in |
|
Warning: Unknown label
Please add the new label to .github/pytorch-probot.yml |
Fixes #3175
CPU kernel files in the
torchao/csrc/cpu/aten_kernels/directory are not skipped correctly on Windows because the path string matching fails (\vs/). This PR fixes this issue.Test plan
We have verified this patch in our local environment (Processor: 12th Gen Intel(R) Core(TM) i7-1270P, OS: Windows 11 Enterprise).