SyTen
syten::Cuda::Handle Struct Reference

Represents a cublasHandle_t object which may or may not be in use. More...

+ Collaboration diagram for syten::Cuda::Handle:

Public Member Functions

 Handle ()=default
 Default ctor. More...
 
 Handle (cublasHandle_t h)
 Standard constructor, taking a cublasHandle_t. More...
 
 Handle (Handle &&)=delete
 Move ctor deleted. More...
 
 Handle (Handle const &)=delete
 Copy ctor deleted. More...
 
Handleoperator= (Handle &&)=delete
 Move assignment op deleted. More...
 
Handleoperator= (Handle const &)=delete
 Copy assignment op deleted. More...
 

Public Attributes

bool in_use = false
 True if the handle our_handle is currently in use. More...
 
std::mutex mtx
 Mutex protecting in_use. More...
 
cublasHandle_t our_handle
 The cublasHandle_t object. More...
 

Detailed Description

Represents a cublasHandle_t object which may or may not be in use.


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