7#include <batchlas/export.hh>
24using potrf =
Event(Queue&,
25 const MatrixView<T, MatrixFormat::Dense>&,
29using potrf_buffer_size = size_t(Queue&,
30 const MatrixView<T, MatrixFormat::Dense>&,
35using potrf_vendor =
Event(Queue&,
36 const MatrixView<T, MatrixFormat::Dense>&,
42using potrf_vendor_buffer_size = size_t(Queue&,
43 const MatrixView<T,MatrixFormat::Dense>&,
61 "POTRF: Matrix dimensions cannot be negative (rows=" +
62 std::to_string(A.
rows()) +
", cols=" + std::to_string(A.
cols()) +
")");
66 "POTRF: A must be square, got " + std::to_string(A.
rows()) +
"x" +
67 std::to_string(A.
cols()));
71 "POTRF: Invalid uplo parameter: " +
72 std::to_string(
static_cast<int>(uplo)));
88template <Backend B,
typename T>
126template <Backend B,
typename T>
137template <Backend B,
typename T>
154template <Backend B,
typename T>
164template <Backend B,
typename T>
Non-owning view of a batch of matrices: the argument type of every entry point.
int rows() const
Rows per item (the capacity on a heterogeneous batch).
int cols() const
Columns per item (the capacity on a heterogeneous batch).
The call violates the API contract.
Enumerations, scalar traits and scalar concepts shared by every public header.
Event potrf_vendor(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &descrA, Uplo uplo, Span< std::byte > workspace, Span< int32_t > info_out)
Vendor arm of potrf(); called by the public potrf(), not by users.
size_t potrf_vendor_buffer_size(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A, Uplo uplo)
Workspace query of the vendor arm of potrf().
Uplo
Which triangle of a symmetric, Hermitian or triangular operand is referenced.
@ Upper
The upper triangle (i <= j).
@ Lower
The lower triangle (i >= j).
size_t potrf_buffer_size(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A, Uplo uplo)
Workspace, in bytes, that potrf() needs for this shape on this queue.
void potrf_validate_params(const MatrixView< T, MatrixFormat::Dense > &A, Uplo uplo)
Validates the arguments of the positional potrf() entry point.
Event potrf(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &descrA, Uplo uplo, Span< std::byte > workspace, Span< int32_t > info)
Batched Cholesky factorization of Hermitian positive-definite matrices.
The batched containers: Matrix (owning), MatrixView (non-owning), KernelMatrixView (device-side),...
Span(T *, typename Span< T >::size_t) -> Span< T >
Backend deduction from the Queue and the USM pointer check.
#define BATCHLAS_DISPATCH_ON_QUEUE(NAME)
Completion handle of enqueued work, returned by every entry point.
Event()
An empty Event, already complete.
Where BatchLAS work runs: a device, a backend, an ordered SYCL queue and a workspace arena.
Non-owning view of size() contiguous elements of type T.
batchlas::Device, batchlas::Event and batchlas::Queue: where work runs and how it is ordered.
batchlas::Span, the non-owning pointer + length every entry point takes for 1-D data.