SyTen
syten::Cuda::HandleBox Struct Reference

RAII wrapper around a handle, putting it out of use on destruction. More...

#include <cublas_support.h>

+ Collaboration diagram for syten::Cuda::HandleBox:

Public Member Functions

cublasHandle_t get ()
 Provides the cublasHandle_t. More...
 
 HandleBox (Handle &h)
 Standard ctor. More...
 
 HandleBox (HandleBox &&h)
 Standard move ctor. More...
 
 HandleBox (HandleBox const &)=delete
 copy ctor deleted. More...
 
HandleBoxoperator= (HandleBox &&)=delete
 Move assignment op deleted. More...
 
HandleBoxoperator= (HandleBox const &)=delete
 Copy assignment op deleted. More...
 
 ~HandleBox ()
 Puts the handle out of use on destruction. More...
 

Public Attributes

Handlehandle
 Proxied handle. More...
 
bool valid = false
 If false, put proxied handle out of use. More...
 

Detailed Description

RAII wrapper around a handle, putting it out of use on destruction.

Obtain this object from get_handle() before your call to cuBLAS and destroy it after the call has completed. You can get the internal cublasHandle_t by get().


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