vt::cuda::CuSolver#

inline void vt::cuda::check_cusolver_status(cusolverStatus_t status, const std::string &message)#

check the status of the CuSolver library.

Parameters:
  • status – The status of the CuSolver library.

  • message – The message to be displayed if the status is not CUSOLVER_STATUS_SUCCESS.

Throws:

std::runtime_error – If the status is not CUSOLVER_STATUS_SUCCESS.

struct CuSolverHandleDeleter#

Deleter for the CuSolver handle.

inline CuSolverHandleT vt::cuda::create_cusolver_handle()#

Create a CuSolver unique pointer handle.

Returns:

CuSolverHandleT: The CuSolver unique pointer handle.

class CuSolver#

Public Functions

inline cusolverDnHandle_t get_handle() const#

Get the CuSolver handle.

Returns:

cusolverDnHandle_t: The CuSolver handle.

Public Static Functions

static inline CuSolver &get_instance()#

Get the Instance object. It returns the singleton instance of the CuSolver handle.

Returns:

CuSolver&

static CuSolver &vt::cuda::cusolver = CuSolver::get_instance()#
template<typename T>
struct CuSolverFuncType#

The type of the CuSolver functions.

Template Parameters:

T – The data type of the CuSolver functions.

template<typename T>
struct CuSolverFunc#

The CuSolver functions for different data types.

Template Parameters:

T – The data type of the CuSolver functions.