Represents a cublasHandle_t object which may or may not be in use. More...
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... | |
Handle & | operator= (Handle &&)=delete |
Move assignment op deleted. More... | |
Handle & | operator= (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... | |
Represents a cublasHandle_t object which may or may not be in use.