|
CUDPP 2.0
CUDA Data-Parallel Primitives Library
|
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 . | |
| void | freeSparseMatrixVectorMultiplyStorage (CUDPPSparseMatrixVectorMultiplyPlan *plan) |
| Deallocate intermediate product, flags and rowFindx (index of the last element of each row) array . | |
| 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. | |
Scan functionality header file - contains CUDPP interface (not public)
| 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 .
| [in] | plan | Pointer 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] | A | The matrix A |
| [in] | rowindx | The indices of elements in A which are the first element of their row |
| [in] | indx | The 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.
| [in] | plan | Pointer 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
| [out] | d_y | The output vector for y = A*x |
| [in] | d_x | The x vector for y = A*x |
| [in] | plan | The sparse matrix plan and data |
1.7.4