27#ifndef math_cublasHandle_hpp
28#define math_cublasHandle_hpp
30#include <cuda_runtime.h>
52 cublasHandle_t m_handle{ NULL };
77 cublasDestroy( m_handle );
84 cublasStatus_t cbec = cublasCreate( &m_handle );
85 if( cbec != CUBLAS_STATUS_SUCCESS )
87 std::cerr << __FILE__ <<
" " << __LINE__ <<
" " << cbec <<
"\n";
105 operator cublasHandle_t()
Management of a cublas handle.
void create()
Create (allocate) the handle.
cublasHandle(bool create)
Constructor with option to create / not create the handle.
cublasHandle_t operator()()
Get the handle for use in calls to cublas routines.
~cublasHandle()
Destructor.
cublasHandle()
Default c'tor.