Repository navigation
Commit 7a06e62
Batched SVD support for ROCSOLVER and CUSOLVER (#275)
* Batched SVD support for ROCSOLVER and CUSOLVER
* Go back to QRIteration default
* Fix default driver for CUDA
* Fix typo
* And fix bad check in yacusolver
* One more API fix
* Fix size of U and V bar
* More API fixes
* Remove redundant dummy one liners
* Switch to batched_svd_f and get rid of Batched versions of algorithms
* Fixup AMD default algos
* Move ragged batch handling and cutoffs etc into MAK
* Add support for a batched svd_via_adjoint for algos requiring tall matrices
* Add batched svd_full too
* Add special path for AMDGPU, implement gesvdx batching there, and fix some errors
* Some fixes and actually test Bisection on AMD
* A few more fixes for Bisection
* Support svd_full for Bisection
* Remove batched and non-batched bisection for now
* Restore Bisection test
* Avoid some allocs
* one to one-liner and more checks for batch_size
* Apply batched suggestions from code review
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
Co-authored-by: Jutho <Jutho@users.noreply.github.com>
* Fix sizes of dummy arrays
* Don't return foreach
* Missing batched Bisection piping
* Refactor out gaugefixing for batches
* Add a flag for whether the driver supports ragged batches
* Dumb typos
* Have batched_svd_compact use Diagonal
* Fix dimension check in gesvdx_strided_batched!
* supports_ragged_batch takes a driver, not an algorithm
* Make sure to mark bisection as supporting svd full here
* Move some batching utilities into a common file
* Move supports_ragged_batch to Driver definition
* Just put batches below algos
* Put the basis completion in the implementation file
* Move batch_size length checks into else
* Apply batched suggestions from code review
Co-authored-by: Jutho <Jutho@users.noreply.github.com>
* Strides for safety
* Use both alg and driver in the batch checks
* batch_size checks for batched gesvdx
* Force driver lookup for support checks
* Dumb typo
* Actually make sure matrices that are too big aren't sent to the batched function
* Move batch_size check for CUSOLVER too
* Reorder check_inputs
* Add TODO for CUSOLVER
* Use supports_pointer_batch and fix oversized test
* Formatter
* Check that inputs are preserved for in-place batch methods
---------
Co-authored-by: Katharine Hyatt <katharine.hyatt@ugent.be>
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
Co-authored-by: Jutho <Jutho@users.noreply.github.com>
Co-authored-by: Katharine Hyatt <katharine.s.hyatt@gmail.com>1 parent 2997686 commit 7a06e62
14 files changed
Lines changed: 1815 additions & 24 deletions
File tree
- ext
- MatrixAlgebraKitAMDGPUExt
- MatrixAlgebraKitCUDAExt
- src
- common
- implementations
- interface
- pullbacks
- test
- decompositions
- testsuite
- decompositions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
| |||
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
31 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
32 | 45 | | |
33 | 46 | | |
34 | 47 | | |
| |||
42 | 55 | | |
43 | 56 | | |
44 | 57 | | |
45 | | - | |
| 58 | + | |
46 | 59 | | |
47 | | - | |
48 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
49 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
50 | 90 | | |
51 | 91 | | |
52 | 92 | | |
| |||
0 commit comments