#include <gpr/linalg/KokkosWorkspace.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| KokkosWorkspace ()=default | |
| ~KokkosWorkspace ()=default | |
| KokkosWorkspace (const KokkosWorkspace &)=delete | |
| KokkosWorkspace & | operator= (const KokkosWorkspace &)=delete |
| EigenMatrix | forward (const EigenMatrix &factor, const EigenMatrix &rhs) |
| L X = B. | |
| EigenMatrix | backward (const EigenMatrix &factor, const EigenMatrix &rhs) |
| L^T X = B. | |
| EigenMatrix | solve (const EigenMatrix &factor, const EigenMatrix &rhs) |
| L L^T X = B with one right-hand-side upload and one result download. | |
| Eigen::VectorXd | squaredNorms (const EigenMatrix &factor, const EigenMatrix &rhs) |
| Squared column norms of L^{-1} B; only the norms are downloaded. | |
| EigenMatrix | inverse (const EigenMatrix &factor) |
| (L L^T)^{-1}, formed on the device from the resident factor. | |
| KokkosTransferStats | transferStats () const |
| void | resetTransferStats () |
| Zeroes the counters; the resident factor is kept. | |
| void | clear () |
| Releases the resident factor and all device buffers; counters are kept. | |
Friends | |
| class | KokkosFactor |
Device copy of one physical host factor plus reusable device buffers. Every call takes the factor explicitly. The resident copy is reused only when the supplied factor has the same shape and identical stored entries as the host witness of the last upload; any other factor, including the same storage after in-place mutation, is uploaded again. Inputs and results remain host matrices. Calls on one workspace are serialized. Device storage is released at the start of Kokkos::finalize, after which device operations throw std::logic_error.
The execution-space state is created on the first call. A default-constructed workspace is empty, so a non-Kokkos build can embed one without linking the Kokkos runtime.
Definition at line 37 of file KokkosWorkspace.h.
|
default |
|
default |
|
delete |
| EigenMatrix gpr::linalg::KokkosWorkspace::backward | ( | const EigenMatrix & | factor, |
| const EigenMatrix & | rhs ) |
L^T X = B.
Definition at line 568 of file KokkosBackend.cpp.
| void gpr::linalg::KokkosWorkspace::clear | ( | ) |
Releases the resident factor and all device buffers; counters are kept.
Definition at line 646 of file KokkosBackend.cpp.
| EigenMatrix gpr::linalg::KokkosWorkspace::forward | ( | const EigenMatrix & | factor, |
| const EigenMatrix & | rhs ) |
L X = B.
Definition at line 556 of file KokkosBackend.cpp.
| EigenMatrix gpr::linalg::KokkosWorkspace::inverse | ( | const EigenMatrix & | factor | ) |
(L L^T)^{-1}, formed on the device from the resident factor.
Definition at line 612 of file KokkosBackend.cpp.
|
delete |
| void gpr::linalg::KokkosWorkspace::resetTransferStats | ( | ) |
Zeroes the counters; the resident factor is kept.
Definition at line 639 of file KokkosBackend.cpp.
| EigenMatrix gpr::linalg::KokkosWorkspace::solve | ( | const EigenMatrix & | factor, |
| const EigenMatrix & | rhs ) |
L L^T X = B with one right-hand-side upload and one result download.
Definition at line 580 of file KokkosBackend.cpp.
| Eigen::VectorXd gpr::linalg::KokkosWorkspace::squaredNorms | ( | const EigenMatrix & | factor, |
| const EigenMatrix & | rhs ) |
Squared column norms of L^{-1} B; only the norms are downloaded.
Definition at line 593 of file KokkosBackend.cpp.
| KokkosTransferStats gpr::linalg::KokkosWorkspace::transferStats | ( | ) | const |
Definition at line 632 of file KokkosBackend.cpp.
|
friend |
Definition at line 63 of file KokkosWorkspace.h.