Introduction to the hipSOLVER API#

The following tables summarize the wrapper functions that are implemented in the regular API for the different supported precisions in the hipSOLVER release. Most of these functions have a corresponding version in the compatibility APIs, where applicable.

Note

The hipSOLVER library is in active development, with new features are being continuously added.

LAPACK auxiliary functions#

LAPACK main functions#

Triangular factorizations#

Function

single

double

single complex

double complex

hipsolverXpotrf_bufferSize

x

x

x

x

hipsolverXpotrf

x

x

x

x

hipsolverXpotrfBatched_bufferSize

x

x

x

x

hipsolverXpotrfBatched

x

x

x

x

hipsolverXgetrf_bufferSize

x

x

x

x

hipsolverXgetrf

x

x

x

x

hipsolverXsytrf_bufferSize

x

x

x

x

hipsolverXsytrf

x

x

x

x

Orthogonal factorizations#

Function

single

double

single complex

double complex

hipsolverXgeqrf_bufferSize

x

x

x

x

hipsolverXgeqrf

x

x

x

x

Problem and matrix reductions#

Function

single

double

single complex

double complex

hipsolverXsytrd_bufferSize

x

x

hipsolverXsytrd

x

x

hipsolverXhetrd_bufferSize

x

x

hipsolverXhetrd

x

x

hipsolverXgebrd_bufferSize

x

x

x

x

hipsolverXgebrd

x

x

x

x

Linear-systems solvers#

Function

single

double

single complex

double complex

hipsolverXpotri_bufferSize

x

x

x

x

hipsolverXpotri

x

x

x

x

hipsolverXpotrs_bufferSize

x

x

x

x

hipsolverXpotrs

x

x

x

x

hipsolverXpotrsBatched_bufferSize

x

x

x

x

hipsolverXpotrsBatched

x

x

x

x

hipsolverXgetrs_bufferSize

x

x

x

x

hipsolverXgetrs

x

x

x

x

hipsolverXXgesv_bufferSize

x

x

x

x

hipsolverXXgesv

x

x

x

x

Least-square solvers#

Function

single

double

single complex

double complex

hipsolverXXgels_bufferSize

x

x

x

x

hipsolverXXgels

x

x

x

x

Symmetric eigensolvers#

Function

single

double

single complex

double complex

hipsolverXsyevd_bufferSize

x

x

hipsolverXsyevd

x

x

hipsolverXsygvd_bufferSize

x

x

hipsolverXsygvd

x

x

hipsolverXheevd_bufferSize

x

x

hipsolverXheevd

x

x

hipsolverXhegvd_bufferSize

x

x

hipsolverXhegvd

x

x

Singular value decomposition#

Function

single

double

single complex

double complex

hipsolverXgesvd_bufferSize

x

x

x

x

hipsolverXgesvd

x

x

x

x

LAPACK-like functions#

Singular value decomposition#

Function

single

double

single complex

double complex

hipsolverDnXgesvdj_bufferSize

x

x

x

x

hipsolverDnXgesvdj

x

x

x

x

hipsolverDnXgesvdjBatched_bufferSize

x

x

x

x

hipsolverDnXgesvdjBatched

x

x

x

x

Compatibility-only functions#

The following tables summarize the wrapper functions that are provided only in the compatibility APIs. These wrappers are supported in rocSOLVER, but are provided by equivalent functions that use different algorithmic approaches or by functionality that is not fully exposed in the public API. For these reasons, the corresponding wrappers are not provided in the regular hipSOLVER API.

Linear-system solvers#

The following linear-system solvers are implemented in rocSOLVER, but 64-bit functions have not yet been added to hipSOLVER’s regular API.

Linear-system solvers#

Function

single

double

single complex

double complex

hipsolverDnXsytrs_bufferSize

x

x

x

x

hipsolverDnXsytrs

x

x

x

x

Partial SVD functions#

Partial SVD has been implemented in rocSOLVER, but it does not use an approximate algorithm and does not compute the residual norm.

Singular value decomposition#

Function

single

double

single complex

double complex

hipsolverDnXgesvdaStridedBatched_bufferSize

x

x

x

x

hipsolverDnXgesvdaStridedBatched

x

x

x

x

General eigensolvers#

General eigensolvers are not yet implemented in rocSOLVER. The rocSOLVER backend will instead call into a CPU implementation of LAPACK.

General eigensolvers#

Function

single

double

single complex

double complex

hipsolverDnXgeev_bufferSize

x

x

x

x

hipsolverDnXgeev

x

x

x

x

Sparse matrix routines#

Sparse matrix routines and direct solvers for sparse matrices are in the very early stages of development. Due to unsupported backend functionality, there are several intricacies and possible performance implications to be aware of when using these routines. See the hipsolverSp compatibility API for more details and a full listing of supported functions.

Combined factorization and linear-system solvers#

Function

single

double

single complex

double complex

hipsolverSpXcsrlsvcholHost

x

x

hipsolverSpXcsrlsvchol

x

x

hipsolverSpXcsrlsvqr

x

x

Refactorization routines#

Refactorization routines and direct solvers for sparse matrices are in the very early stages of development. Due to unsupported backend functionality, there are several intricacies and possible performance implications to be aware of when using these routines. See the hipsolverRf compatibility API for more details and a full listing of supported functions.

Triangular factorizations#

Function

single

double

single complex

double complex

hipsolverRfRefactor

x

x

hipsolverRfBatchRefactor

x

x

Linear-system solvers#

Function

single

double

single complex

double complex

hipsolverRfSolve

x

x

hipsolverRfBatchSolve

x

x