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

Go to the source code of this file.

Namespaces

namespace  cusparse_api
 A collection of templates to wrapper cusparse functions.
 

Macros

#define RESTRICT
 

Functions

template<typename DataType , typename DataIndexType >
void cusparse_api::create_cusparse_csr_matrix (cusparseSpMatDescr_t &cusparse_matrix, const DataIndexType num_rows, const DataIndexType num_columns, const DataIndexType nnz, DataType *RESTRICT device_A_data, DataIndexType *RESTRICT device_A_indices, DataIndexType *RESTRICT device_A_index_pointer)
 
template<typename DataType , typename DataIndexType >
void cusparse_api::create_cusparse_csc_matrix (cusparseSpMatDescr_t &cusparse_matrix, const DataIndexType num_rows, const DataIndexType num_columns, const DataIndexType nnz, DataType *RESTRICT device_A_data, DataIndexType *RESTRICT device_A_indices, DataIndexType *RESTRICT device_A_index_pointer)
 
template<typename DataType >
void cusparse_api::create_cusparse_vector (cusparseDnVecDescr_t &cusparse_vector, const LongIndexType vector_size, DataType *RESTRICT device_vector)
 
void cusparse_api::destroy_cusparse_matrix (cusparseSpMatDescr_t &cusparse_matrix)
 Destroy cusparse matrix.
 
void cusparse_api::destroy_cusparse_vector (cusparseDnVecDescr_t &cusparse_vector)
 Destroys cusparse vector.
 
template<typename DataType >
void cusparse_api::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_api::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)
 

Macro Definition Documentation

◆ RESTRICT

#define RESTRICT

Definition at line 38 of file cusparse_api.h.