-
Notifications
You must be signed in to change notification settings - Fork 24.8k
[CUDA][Linalg] Add gesvd as SVD fallback; optimize SVD gesvdj performance #64533
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
4c3d083
gesvd init
xwang233 1645440
svd uses gesvdj as default
xwang233 fa894ea
split gesvdj buffersize
xwang233 9920276
split gesvd buffersize
xwang233 5a1142b
zero numel shortcut
xwang233 41d74db
Merge remote-tracking branch 'upstream/master' into svd_gpu_gevsd_fal…
xwang233 47d1499
move gesvd fallback outside if-else
xwang233 2cad9c6
temporarily skip svd nan test
xwang233 5e116b9
better formatted error message
xwang233 a24db0a
vt_workspace explanations
xwang233 fc4e4c0
use macros for gesvd args
xwang233 2bb299a
use const reference
xwang233 e9ac1a2
job char
xwang233 b24a26c
Merge remote-tracking branch 'upstream/master' into svd_gpu_gevsd_fal…
xwang233 ff63ebe
linalg test?
xwang233 eac2a4a
fix gesvd when m < n
xwang233 6631fa4
Merge remote-tracking branch 'upstream/master' into svd_gpu_gevsd_fal…
xwang233 b71fed3
Merge remote-tracking branch 'upstream/master' into svd_gpu_gevsd_fal…
xwang233 af60e5c
test with rocm
xwang233 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
linalg test?
- Loading branch information
commit ff63ebe6208947a96da9f5a8c8f4099326f61a50
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
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.
Uh oh!
There was an error while loading. Please reload this page.
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 not quite certain how to change this test. Cusolver gesvd reports
CUSOLVER_STATUS_EXECUTION_FAILED
when the matrix containsnan
cc @IvanYashchuk
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.
Could we do something like this?
#64818 (comment)
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 don't think this is a good idea. First,
Tensor.isnan()
takes extra time. Besides that,if (Tensor.isnan().any())
will cause a device-host sync, which further complicates the performance.< 7B50 span class="Button-label">
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.
Note that I propose doing this whenever we know that an error has occured, so we'll be pesimizing the code before throwing an exception.