[BE]Clean up old APIs in AOTI c shim#158400
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/158400
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 627aabc with merge base 23550ab ( BROKEN TRUNK - The following job 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: D78378373 |
Attention! PyTorch one of the C-stable API file was changedYou MUST NOT change existing function declarations in this, as this header defines a stable C ABI. If you need to change the signature for a function, introduce a new v2 version of the function and modify code generation to target the new version of the function. Caused by: |
ad760d4 to
b6e4e07
Compare
Summary: The shims for aten ops are now generated by torchgen. But there are some still old APIs in `aoti_torch/c/shim.h` This diff moves the old to-be-deprecated APIs for aten ops to a separate header file `shim_deprecated.h` The to-be-deprecated APIs are determined by comparing APIs in `shim.h` and ops in `fallback_ops.py` Test Plan: CI Rollback Plan: Differential Revision: D78378373
|
This pull request was exported from Phabricator. Differential Revision: D78378373 |
Summary: Pull Request resolved: pytorch#158400 The shims for aten ops are now generated by torchgen. But there are some still old APIs in `aoti_torch/c/shim.h` This diff moves the old to-be-deprecated APIs for aten ops to a separate header file `shim_deprecated.h` The to-be-deprecated APIs are determined by comparing APIs in `shim.h` and ops in `fallback_ops.py` Test Plan: CI Rollback Plan: Differential Revision: D78378373
b6e4e07 to
1a4398b
Compare
1a4398b to
2ea3cca
Compare
Summary: The shims for aten ops are now generated by torchgen. But there are some still old APIs in `aoti_torch/c/shim.h` This diff moves the old to-be-deprecated APIs for aten ops to a separate header file `shim_deprecated.h` The to-be-deprecated APIs are determined by comparing APIs in `shim.h` and ops in `fallback_ops.py` Test Plan: CI Rollback Plan: Reviewed By: jingsh Differential Revision: D78378373
|
This pull request was exported from Phabricator. Differential Revision: D78378373 |
Summary: The shims for aten ops are now generated by torchgen. But there are some still old APIs in `aoti_torch/c/shim.h` This diff moves the old to-be-deprecated APIs for aten ops to a separate header file `shim_deprecated.h` The to-be-deprecated APIs are determined by comparing APIs in `shim.h` and ops in `fallback_ops.py` Test Plan: CI Rollback Plan: Reviewed By: jingsh Differential Revision: D78378373
2ea3cca to
0e35052
Compare
|
This pull request was exported from Phabricator. Differential Revision: D78378373 |
Summary: The shims for aten ops are now generated by torchgen. But there are some still old APIs in `aoti_torch/c/shim.h` This diff moves the old to-be-deprecated APIs for aten ops to a separate header file `shim_deprecated.h` The to-be-deprecated APIs are determined by comparing APIs in `shim.h` and ops in `fallback_ops.py` Test Plan: CI Rollback Plan: Reviewed By: jingsh Differential Revision: D78378373
0e35052 to
0165ded
Compare
Summary: The shims for aten ops are now generated by torchgen. But there are some still old APIs in `aoti_torch/c/shim.h` This diff moves the old to-be-deprecated APIs for aten ops to a separate header file `shim_deprecated.h` The to-be-deprecated APIs are determined by comparing APIs in `shim.h` and ops in `fallback_ops.py` Test Plan: CI Rollback Plan: Reviewed By: jingsh Differential Revision: D78378373
0165ded to
b0cd274
Compare
|
This pull request was exported from Phabricator. Differential Revision: D78378373 |
|
This pull request was exported from Phabricator. Differential Revision: D78378373 |
Summary: Pull Request resolved: pytorch#158400 The shims for aten ops are now generated by torchgen. But there are some still old APIs in `aoti_torch/c/shim.h` This diff moves the old to-be-deprecated APIs for aten ops to a separate header file `shim_deprecated.h` The to-be-deprecated APIs are determined by comparing APIs in `shim.h` and ops in `fallback_ops.py` Test Plan: CI Rollback Plan: Reviewed By: jingsh Differential Revision: D78378373
b0cd274 to
f47484c
Compare
Summary: The shims for aten ops are now generated by torchgen. But there are some still old APIs in `aoti_torch/c/shim.h` This diff moves the old to-be-deprecated APIs for aten ops to a separate header file `shim_deprecated.h` The to-be-deprecated APIs are determined by comparing APIs in `shim.h` and ops in `fallback_ops.py` Test Plan: CI Rollback Plan: Reviewed By: jingsh Differential Revision: D78378373
f47484c to
9a876e0
Compare
|
This pull request was exported from Phabricator. Differential Revision: D78378373 |
| ); | ||
|
|
||
| AOTI_TORCH_EXPORT AOTITorchError | ||
| aoti_torch__scaled_dot_product_flash_attention_v2( |
There was a problem hiding this comment.
This one needs to be moved as well.
There was a problem hiding this comment.
@desertfire I can move it to shim_deprecated.h but I cannot mark it with [[deprecated]]. Otherwise build failed as in shim_common.cpp aoti_torch__scaled_dot_product_flash_attention_v2 is being called inside aoti_torch__scaled_dot_product_flash_attention and all warnings being treated as errors in CI.
9a876e0 to
381f44b
Compare
Summary: The shims for aten ops are now generated by torchgen. But there are some still old APIs in `aoti_torch/c/shim.h` This diff moves the old to-be-deprecated APIs for aten ops to a separate header file `shim_deprecated.h` The to-be-deprecated APIs are determined by comparing APIs in `shim.h` and ops in `fallback_ops.py` #buildall Test Plan: CI Rollback Plan: Reviewed By: desertfire, jingsh Differential Revision: D78378373
|
This pull request was exported from Phabricator. Differential Revision: D78378373 |
Summary: The shims for aten ops are now generated by torchgen. But there are some still old APIs in `aoti_torch/c/shim.h` This diff moves the old to-be-deprecated APIs for aten ops to a separate header file `shim_deprecated.h` The to-be-deprecated APIs are determined by comparing APIs in `shim.h` and ops in `fallback_ops.py` Test Plan: CI Rollback Plan: Reviewed By: desertfire, jingsh Differential Revision: D78378373
381f44b to
627aabc
Compare
|
This pull request was exported from Phabricator. Differential Revision: D78378373 |
|
@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 |
Summary:
The shims for aten ops are now generated by torchgen. But there are some still old APIs in
aoti_torch/c/shim.hThis diff moves the old to-be-deprecated APIs for aten ops to a separate header file
shim_deprecated.hThe to-be-deprecated APIs are determined by comparing APIs in
shim.hand ops infallback_ops.pyTest Plan:
CI
Rollback Plan:
Differential Revision: D78378373