12 #ifndef _CU_LINEAR_OPERATOR_CU_LINEAR_OPERATOR_H_
13 #define _CU_LINEAR_OPERATOR_CU_LINEAR_OPERATOR_H_
19 #include <cublas_v2.h>
21 #include "../_definitions/types.h"
22 #include "../_c_linear_operator/c_linear_operator.h"
42 template <
typename DataType>
Base class for linear operators. This class serves as interface for all derived classes.
Base class for linear operators. This class serves as interface for all derived classes.
void initialize_cusparse_handle()
Creates a cusparseHandle_t object, if not created already.
cublasHandle_t * cublas_handle
int query_gpu_devices() const
Before any numerical computation, this method chechs if any gpu device is available on the machine,...
cublasHandle_t get_cublas_handle() const
This function returns a reference to the cublasHandle_t object. The object will be created,...
cusparseHandle_t * cusparse_handle
bool copied_host_to_device
virtual ~cuLinearOperator()
void initialize_cublas_handle()
Creates a cublasHandle_t object, if not created already.