imate
C++/CUDA Reference
cusparse_interface.h File Reference
#include <cusparse.h>
#include "../_definitions/types.h"
Include dependency graph for cusparse_interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 cusparse_interface
 A collection of templates to wrapper cusparse functions.
 

Functions

template<typename DataType >
void cusparse_interface::create_cusparse_matrix (cusparseSpMatDescr_t &cusparse_matrix, const LongIndexType num_rows, const LongIndexType num_columns, const LongIndexType nnz, DataType *device_A_data, LongIndexType *device_A_indices, LongIndexType *device_A_index_pointer)
 
template<typename DataType >
void cusparse_interface::create_cusparse_vector (cusparseDnVecDescr_t &cusparse_vector, const LongIndexType vector_size, DataType *device_vector)
 
void cusparse_interface::destroy_cusparse_matrix (cusparseSpMatDescr_t &cusparse_matrix)
 Destroys cusparse matrix. More...
 
void cusparse_interface::destroy_cusparse_vector (cusparseDnVecDescr_t &cusparse_vector)
 Destroys cusparse vector. More...
 
template<typename DataType >
void cusparse_interface::cusparse_matrix_buffer_size (cusparseHandle_t cusparse_handle, cusparseOperation_t cusparse_operation, const DataType alpha, cusparseSpMatDescr_t cusparse_matrix, cusparseDnVecDescr_t cusparse_input_vector, const DataType beta, cusparseDnVecDescr_t cusparse_output_vector, cusparseSpMVAlg_t algorithm, size_t *buffer_size)
 
template<typename DataType >
void cusparse_interface::cusparse_matvec (cusparseHandle_t cusparse_handle, cusparseOperation_t cusparse_operation, const DataType alpha, cusparseSpMatDescr_t cusparse_matrix, cusparseDnVecDescr_t cusparse_input_vector, const DataType beta, cusparseDnVecDescr_t cusparse_output_vector, cusparseSpMVAlg_t algorithm, void *external_buffer)