getrs_batch_scratchpad_size#

Computes size of scratchpad memory required for the getrs_batch function.

Description

getrs_batch_scratchpad_size supports the following precisions.

T

float

double

std::complex<float>

std::complex<double>

Group API

Computes the number of elements of type T the scratchpad memory should able to hold to be passed to the Group API of the getrs_batch function.

Syntax

namespace oneapi::mkl::lapack {
  template <typename T>
  std::int64_t getrs_batch_scratchpad_size(cl::sycl::queue &queue, mkl::transpose *trans, std::int64_t *n, std::int64_t *nrhs, std::int64_t *lda, std::int64_t *ldb, std::int64_t group_count, std::int64_t *group_sizes)
}

Input Parameters

queue

Device queue where calculations will be performed.

trans
Array of group_count parameters transg indicating the form of the equations for the group g:
If trans = mkl::transpose::nontrans, then AiXi=Bi is solved for Xi.
If trans = mkl::transpose::trans, then AiTXi=Bi is solved for Xi.
If trans = mkl::transpose::conjtrans, then AiHXi=Bi is solved for Xi.
n

Array of group_count parameters ng specifying the order of the matrices Ai and the number of rows in matrices Bi (0ng) belonging to group g.

nrhs

Array of group_count parameters nrhsg specifying the number of right-hand sides (0nrhsg) for group g.

lda

Array of group_count parameters ldag specifying the leading dimensions of Ai from group g.

ldb

Array of group_count parameters ldbg specifying the leading dimensions of Bi in the group g.

group_count

Number of groups of parameters. Must be at least 0.

group_sizes

Array of group_count integers. Array element with index g specifies the number of problems to solve for each of the groups of parameters g. So the total number of problems to solve, batch_size, is a sum of all parameter group sizes.

Return Values

Number of elements of type T the scratchpad memory should able to hold to be passed to the Group API of the getrs_batch function.

Throws

This routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here.

oneapi::mkl::unimplemented

oneapi::mkl::unsupported_device

oneapi::mkl::lapack::invalid_argument

Exception is thrown in case of incorrect supplied argument value. Position of wrong argument can be determined by info() method of exception object.

Strided API

Computes the number of elements of type T the scratchpad memory should able to hold to be passed to the Strided API of the getrs_batch function.

Syntax

namespace oneapi::mkl::lapack {
  template <typename T>
  std::int64_t getrs_batch_scratchpad_size(cl::sycl::queue &queue, mkl::transpose trans, std::int64_t n, std::int64_t nrhs, std::int64_t lda, std::int64_t stride_a, std::int64_t stride_ipiv, std::int64_t ldb, std::int64_t stride_b, std::int64_t batch_size)
};

Input Parameters

queue

Device queue where calculations will be performed.

trans
Indicates the form of the equations:
If trans = mkl::transpose::nontrans, then AiXi=Bi is solved for Xi.
If trans = mkl::transpose::trans, then AiTXi=Bi is solved for Xi.
If trans = mkl::transpose::conjtrans, then AiHXi=Bi is solved for Xi.
n

Order of the matrices Ai and the number of rows in matrices Bi (0n).

nrhs

Number of right-hand sides (0nrhs).

lda

Leading dimension of Ai.

stride_a

Stride between the beginnings of matrices Ai inside the batch array a.

stride_ipiv

Stride between the beginnings of arrays ipivi inside the array ipiv.

ldb

Leading dimension of Bi.

stride_b

Stride between the beginnings of matrices Bi inside the batch array b.

batch_size

Number of problems in a batch.

Return Values

Number of elements of type T the scratchpad memory should able to hold to be passed to the Strided API of the getrs_batch function.

Throws

This routine shall throw the following exceptions if the associated condition is detected. An implementation may throw additional implementation-specific exception(s) in case of error conditions not covered here.

oneapi::mkl::unimplemented

oneapi::mkl::unsupported_device

oneapi::mkl::lapack::invalid_argument

Exception is thrown in case of incorrect supplied argument value. Position of wrong argument can be determined by info() method of exception object.

Parent topic: LAPACK-like Extensions Routines