def cusparseCheckStatus(status):
    """
    Raise CUSPARSE exception

    Raise an exception corresponding to the specified CUSPARSE error
    code.

    Parameters
    ----------
    status : int
        CUSPARSE error code.

    See Also
    --------
    cusparseExceptions

    """

    if status != 0:
        try:
            raise cusparseExceptions[status]
        except __HOLE__:
            raise cusparseError
dataset/ETHPy150Open lebedov/scikit-cuda/skcuda/cusparse.py/cusparseCheckStatus