Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
Public Member Functions | Public Attributes | List of all members
Utilities::CUDA::Handle Struct Reference

#include <deal.II/base/cuda.h>

Public Member Functions

 Handle ()
 
 Handle (Handle const &)=delete
 
 ~Handle ()
 

Public Attributes

cusolverDnHandle_t cusolver_dn_handle
 
cusolverSpHandle_t cusolver_sp_handle
 
cusparseHandle_t cusparse_handle
 

Detailed Description

Various CUDA APIs need an object to store internal data. This structure creates, initializes, stores, and destroys these so-called handles for the respective CUDA libraries used inside deal.II.

Definition at line 43 of file cuda.h.

Constructor & Destructor Documentation

◆ Handle() [1/2]

Utilities::CUDA::Handle::Handle ( )

Constructor. Initialize the handles for the different libraries.

◆ Handle() [2/2]

Utilities::CUDA::Handle::Handle ( Handle const &  )
delete

Copy constructor is deleted.

◆ ~Handle()

Utilities::CUDA::Handle::~Handle ( )

Destructor. Destroy the handles.

Member Data Documentation

◆ cusolver_dn_handle

cusolverDnHandle_t Utilities::CUDA::Handle::cusolver_dn_handle

Pointer to an opaque cuSolverDN context. The handle must be passed to every cuSolverDN library function.

Definition at line 64 of file cuda.h.

◆ cusolver_sp_handle

cusolverSpHandle_t Utilities::CUDA::Handle::cusolver_sp_handle

Pointer to an opaque cuSolverSP context. The handle must be passed to every cuSolverSP library function.

Definition at line 70 of file cuda.h.

◆ cusparse_handle

cusparseHandle_t Utilities::CUDA::Handle::cusparse_handle

Pointer to an opaque cuSPARSE context. The handle must be passed to every cuSPARSE library function.

Definition at line 76 of file cuda.h.


The documentation for this struct was generated from the following file: