[inductor] allocate non-blocking copy destinations in pinned memory (#155121)#158758
[inductor] allocate non-blocking copy destinations in pinned memory (#155121)#158758v0i0 wants to merge 19 commits intogh/v0i0/2/basefrom
Conversation
…155121) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/158758
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit ada0bdc with merge base dad2a05 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…ed memory (#155121)" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben Lucaskabela [ghstack-poisoned]
eellison
left a comment
There was a problem hiding this comment.
Looking good !
Add test both for the cat and non-cat cases ? and a test case when cpp wrapper is turned on ?
| size: Sequence[Expr], | ||
| stride: Optional[Sequence[Expr]] = None, | ||
| offset: Expr = Integer(0), | ||
| is_pinned: bool = False, |
There was a problem hiding this comment.
You got the important cases, but I think there are a few more places you'll need to thread the is_pinned field through. Grep through FixedLayout/FlexibleLayout construction.
This might be a bit tricky without more context, but the instantiations that happen as views should preserve whether the input layout was pinned.
See, ExpandView::create, PermuteView::create, SqueezeView::create View::create, SliceView::create, convert_to_reinterpret_view.
…ed memory (#155121)" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben Lucaskabela [ghstack-poisoned]
…ed memory (#155121)" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben Lucaskabela [ghstack-poisoned]
…ed memory (#155121)" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben Lucaskabela [ghstack-poisoned]
…ed memory (#155121)" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben Lucaskabela [ghstack-poisoned]
test/cpp_extensions/libtorch_agnostic_extension/libtorch_agnostic/csrc/kernel.cpp
Outdated
Show resolved
Hide resolved
…ed memory (#155121)" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben Lucaskabela [ghstack-poisoned]
…ed memory (#155121)" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben Lucaskabela [ghstack-poisoned]
|
@yushangdi i tried this, it works on my end |
…on (#155360) (#158983) Pull Request resolved: #158983 Approved by: https://github.com/eellison ghstack dependencies: #158758
|
@pytorchbot revert -c ghfirst -m "I need to revert #158462 (it causes device-side asserts), and this PR causes a merge conflict in the test file. Sorry about that!" |
|
@pytorchbot successfully started a revert job. Check the current status here. |
… partition (#155360) (#158983)" This reverts commit 444e238. Reverted #158983 on behalf of https://github.com/davidberard98 due to I need to revert #158462 (it causes device-side asserts), and this PR causes a merge conflict in the test file. Sorry about that! ([comment](#158758 (comment)))
…memory (#155121) (#158758)" This reverts commit 6085bf7. Reverted #158758 on behalf of https://github.com/davidberard98 due to I need to revert #158462 (it causes device-side asserts), and this PR causes a merge conflict in the test file. Sorry about that! ([comment](#158758 (comment)))
|
@v0i0 your PR has been successfully reverted. |
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: |
|
@pytorchbot merge |
|
Starting merge as part of PR stack under #158983 |
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 |
…on (#155360) (#158983) Pull Request resolved: #158983 Approved by: https://github.com/eellison ghstack dependencies: #158758
…ytorch#155121) (pytorch#158758) Fixes pytorch#155121 Pull Request resolved: pytorch#158758 Approved by: https://github.com/EikanWang, https://github.com/eellison
…on (pytorch#155360) (pytorch#158983) Pull Request resolved: pytorch#158983 Approved by: https://github.com/eellison ghstack dependencies: pytorch#158758
… partition (pytorch#155360) (pytorch#158983)" This reverts commit 444e238. Reverted pytorch#158983 on behalf of https://github.com/davidberard98 due to I need to revert pytorch#158462 (it causes device-side asserts), and this PR causes a merge conflict in the test file. Sorry about that! ([comment](pytorch#158758 (comment)))
…memory (pytorch#155121) (pytorch#158758)" This reverts commit 6085bf7. Reverted pytorch#158758 on behalf of https://github.com/davidberard98 due to I need to revert pytorch#158462 (it causes device-side asserts), and this PR causes a merge conflict in the test file. Sorry about that! ([comment](pytorch#158758 (comment)))
…ytorch#155121) (pytorch#158758) Fixes pytorch#155121 Pull Request resolved: pytorch#158758 Approved by: https://github.com/EikanWang, https://github.com/eellison
…on (pytorch#155360) (pytorch#158983) Pull Request resolved: pytorch#158983 Approved by: https://github.com/eellison ghstack dependencies: pytorch#158758
Fixes #155121
Stack from ghstack (oldest at bottom):
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @Lucaskabela