[TensorExpr] TensorExprKernel: don't do any compilation or lowering in run().#37948
Closed
ZolotukhinM wants to merge 4 commits intogh/ZolotukhinM/239/basefrom
Closed
[TensorExpr] TensorExprKernel: don't do any compilation or lowering in run().#37948ZolotukhinM wants to merge 4 commits intogh/ZolotukhinM/239/basefrom
ZolotukhinM wants to merge 4 commits intogh/ZolotukhinM/239/basefrom
Conversation
…n run(). The input JIT graph has all the information we need to perform the entire compilation at the construction time. We don't need to postpone any steps until the execution time. Also, from the graph we always know what device we will be executing on and thus we don't need to have a CodeGen cache in TensorExprKernel - we always have one and only one CodeGen. [ghstack-poisoned]
… lowering in run()." The input JIT graph has all the information we need to perform the entire compilation at the construction time. We don't need to postpone any steps until the execution time. Also, from the graph we always know what device we will be executing on and thus we don't need to have a CodeGen cache in TensorExprKernel - we always have one and only one CodeGen. [ghstack-poisoned]
ZolotukhinM
pushed a commit
that referenced
this pull request
May 6, 2020
…n run(). The input JIT graph has all the information we need to perform the entire compilation at the construction time. We don't need to postpone any steps until the execution time. Also, from the graph we always know what device we will be executing on and thus we don't need to have a CodeGen cache in TensorExprKernel - we always have one and only one CodeGen. ghstack-source-id: e1fc41c Pull Request resolved: #37948
💊 CI failures summary and remediationsAs of commit de9aeb5 (more details on the Dr. CI page):
ci.pytorch.org: 1 failedThis comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker. This comment has been revised 7 times. |
… lowering in run()." The input JIT graph has all the information we need to perform the entire compilation at the construction time. We don't need to postpone any steps until the execution time. Also, from the graph we always know what device we will be executing on and thus we don't need to have a CodeGen cache in TensorExprKernel - we always have one and only one CodeGen. Differential Revision: [D21432145](https://our.internmc.facebook.com/intern/diff/D21432145) [ghstack-poisoned]
ZolotukhinM
pushed a commit
that referenced
this pull request
May 12, 2020
…n run(). The input JIT graph has all the information we need to perform the entire compilation at the construction time. We don't need to postpone any steps until the execution time. Also, from the graph we always know what device we will be executing on and thus we don't need to have a CodeGen cache in TensorExprKernel - we always have one and only one CodeGen. ghstack-source-id: 90856fa Pull Request resolved: #37948
… lowering in run()." The input JIT graph has all the information we need to perform the entire compilation at the construction time. We don't need to postpone any steps until the execution time. Also, from the graph we always know what device we will be executing on and thus we don't need to have a CodeGen cache in TensorExprKernel - we always have one and only one CodeGen. Differential Revision: [D21432145](https://our.internmc.facebook.com/intern/diff/D21432145) [ghstack-poisoned]
ZolotukhinM
pushed a commit
that referenced
this pull request
May 13, 2020
…n run(). The input JIT graph has all the information we need to perform the entire compilation at the construction time. We don't need to postpone any steps until the execution time. Also, from the graph we always know what device we will be executing on and thus we don't need to have a CodeGen cache in TensorExprKernel - we always have one and only one CodeGen. ghstack-source-id: a8ccf12 Pull Request resolved: #37948
|
@ZolotukhinM , does this work with the multigpu tests in test_jit_fuser_te.py? |
Author
All tests pass with this change. |
protonu
approved these changes
May 13, 2020
Contributor
|
@ZolotukhinM merged this pull request in 6e13146. |
laurentdupin
pushed a commit
to laurentdupin/pytorch
that referenced
this pull request
Apr 24, 2026
…n run(). (pytorch#37948) Summary: Pull Request resolved: pytorch#37948 The input JIT graph has all the information we need to perform the entire compilation at the construction time. We don't need to postpone any steps until the execution time. Also, from the graph we always know what device we will be executing on and thus we don't need to have a CodeGen cache in TensorExprKernel - we always have one and only one CodeGen. Test Plan: Imported from OSS Reviewed By: protonu Differential Revision: D21432145 Pulled By: ZolotukhinM fbshipit-source-id: 8dc86b891713056b2c62f30170cd4a168912f027
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
The input JIT graph has all the information we need to perform the
entire compilation at the construction time. We don't need to postpone
any steps until the execution time. Also, from the graph we always know
what device we will be executing on and thus we don't need to have a
CodeGen cache in TensorExprKernel - we always have one and only one
CodeGen.
Differential Revision: D21432145