RAII wrapper around a handle, putting it out of use on destruction. More...
#include <cublas_support.h>
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... | |
HandleBox & | operator= (HandleBox &&)=delete |
Move assignment op deleted. More... | |
HandleBox & | operator= (HandleBox const &)=delete |
Copy assignment op deleted. More... | |
~HandleBox () | |
Puts the handle out of use on destruction. More... | |
Public Attributes | |
Handle & | handle |
Proxied handle. More... | |
bool | valid = false |
If false, put proxied handle out of use. More... | |
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().