-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Extract DeviceType to a standalone header file #154417
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/154417
Note: Links to docs will display an error until the docs builds have been completed. ❌ 5 Cancelled Jobs, 2 Unrelated FailuresAs of commit 55ac81e with merge base 4fd8a54 ( CANCELLED JOBS - The following jobs were cancelled. Please retry:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D75313723 |
Summary: X-link: pytorch/pytorch#154417 The goal of this PR and future follow-up PRs is to group a set of header files required by AOTInductor Standalone in a separate directory, ensuring they are implemented in a header-only manner. More specifically, here is what this PR does: * Extract the DeviceType enum class into a standalone header file in a new torch/standalone/header_only directory * Retain the existing c10/core/DeviceType.[h|cpp] files to handle complex logic and static variables * Import symbols from the new torch::standalone namespace into c10 for backward compatibility This is an updated version of pytorch/pytorch#152787, because we need to land in fbcode first. See the original comments and discussions in pytorch/pytorch#152787. Differential Revision: D75313723
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with a flag called TORCH_STANDALONE
Summary: X-link: pytorch/pytorch#154417 The goal of this PR and future follow-up PRs is to group a set of header files required by AOTInductor Standalone in a separate directory, ensuring they are implemented in a header-only manner. More specifically, here is what this PR does: * Extract the DeviceType enum class into a standalone header file in a new torch/standalone/header_only directory * Retain the existing c10/core/DeviceType.[h|cpp] files to handle complex logic and static variables * Import symbols from the new torch::standalone namespace into c10 for backward compatibility This is an updated version of pytorch/pytorch#152787, because we need to land in fbcode first. See the original comments and discussions in pytorch/pytorch#152787. Reviewed By: janeyx99 Differential Revision: D75313723
Summary: X-link: pytorch/pytorch#154417 The goal of this PR and future follow-up PRs is to group a set of header files required by AOTInductor Standalone in a separate directory, ensuring they are implemented in a header-only manner. More specifically, here is what this PR does: * Extract the DeviceType enum class into a standalone header file in a new torch/standalone/header_only directory * Retain the existing c10/core/DeviceType.[h|cpp] files to handle complex logic and static variables * Import symbols from the new torch::standalone namespace into c10 for backward compatibility This is an updated version of pytorch/pytorch#152787, because we need to land in fbcode first. See the original comments and discussions in pytorch/pytorch#152787. Reviewed By: janeyx99 Differential Revision: D75313723
Summary: X-link: pytorch/executorch#11145 The goal of this PR and future follow-up PRs is to group a set of header files required by AOTInductor Standalone in a separate directory, ensuring they are implemented in a header-only manner. More specifically, here is what this PR does: * Extract the DeviceType enum class into a standalone header file in a new torch/standalone/header_only directory * Retain the existing c10/core/DeviceType.[h|cpp] files to handle complex logic and static variables * Import symbols from the new torch::standalone namespace into c10 for backward compatibility This is an updated version of #152787, because we need to land in fbcode first. See the original comments and discussions in #152787. Test Plan: CI Reviewed By: janeyx99 Differential Revision: D75313723
df5b453
to
90d1d24
Compare
Summary: X-link: pytorch/executorch#11145 Pull Request resolved: #154417 The goal of this PR and future follow-up PRs is to group a set of header files required by AOTInductor Standalone in a separate directory, ensuring they are implemented in a header-only manner. More specifically, here is what this PR does: * Extract the DeviceType enum class into a standalone header file in a new torch/standalone/header_only directory * Retain the existing c10/core/DeviceType.[h|cpp] files to handle complex logic and static variables * Import symbols from the new torch::standalone namespace into c10 for backward compatibility This is an updated version of #152787, because we need to land in fbcode first. See the original comments and discussions in #152787. Test Plan: CI Reviewed By: janeyx99 Differential Revision: D75313723
This pull request was exported from Phabricator. Differential Revision: D75313723 |
90d1d24
to
55ac81e
Compare
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Merge startedYour 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 |
Merge failedReason: 5 jobs have failed, first few of them are: trunk / cuda12.8-py3.10-gcc9-sm80 / build, inductor / cuda12.8-py3.10-gcc9-sm86 / build, inductor / unit-test / cuda12.6-py3.10-gcc9-sm86 / build, inductor / unit-test / cuda12.6-py3.12-gcc9-sm86 / build, inductor / unit-test / cuda12.6-py3.13-gcc9-sm86 / build Details for Dev Infra teamRaised by workflow job |
Unlanded internally. Let's not force-merge here. |
Summary:
The goal of this PR and future follow-up PRs is to group a set of header files required by AOTInductor Standalone in a separate directory, ensuring they are implemented in a header-only manner. More specifically, here is what this PR does:
This is an updated version of #152787, because we need to land in fbcode first. See the original comments and discussions in #152787.
Test Plan: CI
Differential Revision: D75313723
cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel