CUDPP  2.2
CUDA Data-Parallel Primitives Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
cudpp_spmvmult.h File Reference

Scan functionality header file - contains CUDPP interface (not public) More...

Functions

void allocSparseMatrixVectorMultiplyStorage (CUDPPSparseMatrixVectorMultiplyPlan *plan, const void *A, const unsigned int *rowindx, const unsigned int *indx)
 Allocate intermediate product, flags and rowFindx (index of the last element of each row) array . More...
 
void freeSparseMatrixVectorMultiplyStorage (CUDPPSparseMatrixVectorMultiplyPlan *plan)
 Deallocate intermediate product, flags and rowFindx (index of the last element of each row) array . More...
 
void cudppSparseMatrixVectorMultiplyDispatch (void *d_y, const void *d_x, const CUDPPSparseMatrixVectorMultiplyPlan *plan)
 Dispatch function to perform a sparse matrix-vector multiply with the specified configuration. More...
 

Detailed Description

Scan functionality header file - contains CUDPP interface (not public)

cudpp_spmvmult.h

Function Documentation

void allocSparseMatrixVectorMultiplyStorage ( CUDPPSparseMatrixVectorMultiplyPlan plan,
const void *  A,
const unsigned int *  rowindx,
const unsigned int *  indx 
)

Allocate intermediate product, flags and rowFindx (index of the last element of each row) array .

Parameters
[in]planPointer to CUDPPSparseMatrixVectorMultiplyPlan class containing sparse matrix-vector multiply options, number of non-zero elements and number of rows which is used to compute storage requirements
[in]AThe matrix A
[in]rowindxThe indices of elements in A which are the first element of their row
[in]indxThe column number for each element in A
void freeSparseMatrixVectorMultiplyStorage ( CUDPPSparseMatrixVectorMultiplyPlan plan)

Deallocate intermediate product, flags and rowFindx (index of the last element of each row) array .

These arrays must have been allocated by allocSparseMatrixVectorMultiplyStorage(), which is called by the constructor of CUDPPSparseMatrixVectorMultiplyPlan.

Parameters
[in]planPointer to CUDPPSparseMatrixVectorMultiplyPlan plan initialized by its constructor.
void cudppSparseMatrixVectorMultiplyDispatch ( void *  d_y,
const void *  d_x,
const CUDPPSparseMatrixVectorMultiplyPlan plan 
)

Dispatch function to perform a sparse matrix-vector multiply with the specified configuration.

This is the dispatch routine which calls sparseMatrixVectorMultiply() with appropriate template parameters and arguments

Parameters
[out]d_yThe output vector for y = A*x
[in]d_xThe x vector for y = A*x
[in]planThe sparse matrix plan and data