forked from IntelPython/dpnp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
dpnp.linalg.svd()
to run on CUDA (IntelPython#2212)
This PR suggests updating `dpnp.linagl.svd()` implementation to support running on CUDA devices. Since cuSolver gesvd only supports m>=n the previous implementation crashed with `Segmentation fault (core dumped)` This suggests adding checks for `m>=n` otherwise transpose the input array. Passing the transposed array to `oneapi::mkl::lapack::gesvd` increases the performance of `dpnp.linalg.svd()` due to the reducing a matrix with `m >= n` to bidiagonal form (inside `lapack::gesvd`) is more efficient
- Loading branch information
1 parent
e0c9cf1
commit 4875e59
Showing
2 changed files
with
78 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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 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