Reference documentation for deal.II version 9.6.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Utilities::CUDA::Handle Struct Reference

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

Public Member Functions

 Handle ()
 
 Handle (const Handle &)=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.

Definition at line 30 of file cuda.cc.

◆ Handle() [2/2]

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

Copy constructor is deleted.

◆ ~Handle()

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

Destructor. Destroy the handles.

Definition at line 45 of file cuda.cc.

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 files: