code: public static int cusparseScsr2gebsr_bufferSize(
          cusparseHandle handle, 
          int dirA, 
          int m, 
          int n, 
          cusparseMatDescr descrA, 
          Pointer csrSortedValA, 
          Pointer csrSortedRowPtrA, 
          Pointer csrSortedColIndA, 
          int rowBlockDim, 
          int colBlockDim, 
          int[] pBufferSizeInBytes)
      {
          return checkResult(cusparseScsr2gebsr_bufferSizeNative(handle, dirA, m, n, descrA, csrSortedValA, csrSortedRowPtrA, csrSortedColIndA, rowBlockDim, colBlockDim, pBufferSizeInBytes));
      }
docs: Description: This routine converts a sparse matrix in CSR storage format
  to a sparse matrix in general block-CSR storage format.