(status)
Raise CUBLAS exception

    Raise an exception corresponding to the specified CUBLAS error
    code.

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

    See Also
    --------
    cublasExceptions
Raise CUBLAS exception
Raise CUBLAS exception
def cublasCheckStatus(status):
    """
    Raise CUBLAS exception

    Raise an exception corresponding to the specified CUBLAS error
    code.

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

    See Also
    --------
    cublasExceptions
    """

    if status != 0:
        try:
            e = cublasExceptions[status]
        except KeyError:
            raise cublasError
        else:
            raise e
def cublasCheckStatus ( status ) : if status != 0 : try : e = cublasExceptions [ status ] except KeyError : raise cublasError else : raise e