-
Notifications
You must be signed in to change notification settings - Fork 61
QR operator utilizing XPU. #2399
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
Open
mwiktor-intel
wants to merge
20
commits into
intel:main
Choose a base branch
from
Silv3S:pre_qr_commit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+193
−1
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
78e95cd
mm
Silv3S 60b868b
remove duplicates
Silv3S 2267fca
Merge branch 'intel:main' into dev_wiktor
Silv3S ba893b0
dev3
Silv3S e0f5f6b
First callable poc
Silv3S 16028d1
Merge branch 'intel:main' into dev_wiktor
Silv3S c40b846
Merge branch 'intel:main' into dev_wiktor
Silv3S 025291a
simple test
Silv3S 6e025e1
cleanup
Silv3S 5e593d8
format
Silv3S 2038538
remove vars
Silv3S e564e1a
Merge branch 'intel:main' into dev_wiktor
Silv3S 8f5a74c
Merge branch 'intel:main' into pre_qr_commit
Silv3S 3c26a9e
New implementation of QR kernel based on mkl::geqrf and orgqr
mwiktor-intel 1531fa1
cleaned version of QR
mwiktor-intel 980732b
Enable more dev tests
Silv3S e8b49e7
Move QR to mkl
Silv3S 419eb57
Port ut to test_linalg_xpu
Silv3S a56a4ff
Merge remote-tracking branch 'iops/main' into pre_qr_commit
Silv3S 7906ef2
Fix the non-MKL fallback path
Silv3S File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9443,6 +9443,17 @@ | |
| - func: linalg_solve(Tensor A, Tensor B, *, bool left=True) -> Tensor | ||
| python_module: linalg | ||
|
|
||
| - func: linalg_qr(Tensor A, str mode='reduced') -> (Tensor Q, Tensor R) | ||
| python_module: linalg | ||
| variants: function | ||
| structured_delegate: linalg_qr.out | ||
|
|
||
| - func: linalg_qr.out(Tensor A, str mode='reduced', *, Tensor(a!) Q, Tensor(b!) R) -> (Tensor(a!) Q, Tensor(b!) R) | ||
| python_module: linalg | ||
| structured: True | ||
| dispatch: | ||
| XPU: linalg_qr_xpu_out | ||
|
|
||
|
Comment on lines
+9446
to
+9456
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please refer to https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/native_functions.yaml#L14623 and consider stub mentioned above. |
||
| - func: linalg_inv_ex(Tensor A, *, bool check_errors=False) -> (Tensor inverse, Tensor info) | ||
| python_module: linalg | ||
| structured_delegate: linalg_inv_ex.inverse | ||
|
|
||
Oops, something went wrong.
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.
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.
My suggestion is to register
geqrf_kerenl_xpu/orgqr_kernel_xputogeqrf_stub/orgqr_stub, which allows us to reuse op level code in stock Pytorch and reuse these two kernels in future.