7#include <batchlas/export.hh>
24using getrf =
Event(Queue&,
25 const MatrixView<T, MatrixFormat::Dense>&,
29using getrf_buffer_size = size_t(Queue&,
30 const MatrixView<T, MatrixFormat::Dense>&);
34using getrf_vendor =
Event(Queue&,
35 const MatrixView<T, MatrixFormat::Dense>&,
41using getrf_vendor_buffer_size = size_t(Queue&,
42 const MatrixView<T, MatrixFormat::Dense>&);
62 "GETRF: Matrix dimensions cannot be negative (rows=" +
63 std::to_string(A.
rows()) +
", cols=" + std::to_string(A.
cols()) +
")");
109template <Backend B,
typename T>
119template <Backend B,
typename T>
132template <Backend B,
typename T>
146template <Backend B,
typename T>
156template <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 getrf_vendor(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A, Span< int64_t > pivots, Span< std::byte > work_space, Span< int32_t > info_out)
Vendor arm of getrf(); called by getrf() when it selects the vendor kernel family,...
size_t getrf_vendor_buffer_size(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A)
Workspace query of the vendor arm of getrf().
void getrf_validate_params(const MatrixView< T, MatrixFormat::Dense > &A)
Validates the arguments of the positional getrf() entry point.
size_t getrf_buffer_size(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A)
Workspace, in bytes, that getrf() needs for this shape on this queue.
Event getrf(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A, Span< int64_t > pivots, Span< std::byte > work_space, Span< int32_t > info)
Batched LU factorization with partial pivoting.
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.