Skip to main content

cusparseCreateSlicedEll

Function cusparseCreateSlicedEll 

Source
pub unsafe extern "C" fn cusparseCreateSlicedEll(
    spMatDescr: *mut cusparseSpMatDescr_t,
    rows: i64,
    cols: i64,
    nnz: i64,
    sellValuesSize: i64,
    sliceSize: i64,
    sellSliceOffsets: *mut c_void,
    sellColInd: *mut c_void,
    sellValues: *mut c_void,
    sellSliceOffsetsType: cusparseIndexType_t,
    sellColIndType: cusparseIndexType_t,
    idxBase: cusparseIndexBase_t,
    valueType: cudaDataType,
) -> cusparseStatus_t
Expand description

This function initializes the sparse matrix descriptor spMatDescr for the Sliced Ellpack (SELL) format.

cusparseCreateSlicedEll has the following constraints:

  • sellSliceOffsets, sellColInd, and sellValues must be aligned to the size of the datatypes specified by sellSliceOffsetsType, sellColIndType, and valueType, respectively. See cudaDataType_t for the description of the datatypes.

ยงParameters

  • spMatDescr: Sparse matrix descriptor.
  • rows: Number of rows of the sparse matrix.
  • cols: Number of columns of the sparse matrix.
  • nnz: Number of nonzero elements in the sparse matrix.
  • sellValuesSize: Total number of elements in sellValues array (nonzero and padding).
  • sliceSize: The number of rows per slice.
  • sellSliceOffsets: Slice offsets of the sparse matrix. Array of size $\left \lceil{\frac{rows}{sliceSize}}\right \rceil + 1$.
  • sellColInd: Column indexes of the sparse matrix. Array of size sellValuesSize.
  • sellValues: Values of the sparse matrix. Array of size sellValuesSize elements.
  • sellSliceOffsetsType: Data type of sellSliceOffsets.
  • sellColIndType: Data type of sellColInd.
  • idxBase: Index base of sellColInd.
  • valueType: Data type of sellValues.