(status)
Raise CUDA exception.

    Raise an exception corresponding to the specified CUDA runtime error
    code.

    Parameters
    ----------
    status : int
        CUDA runtime error code.

    See Also
    --------
    cudaExceptions
Raise CUDA exception.
Raise CUDA exception .
def cudaCheckStatus(status):
    """
    Raise CUDA exception.

    Raise an exception corresponding to the specified CUDA runtime error
    code.

    Parameters
    ----------
    status : int
        CUDA runtime error code.

    See Also
    --------
    cudaExceptions
    """

    if status != 0:
        try:
            e = cudaExceptions[status]
        except KeyError:
            raise cudaError('unknown CUDA error %s' % status)
        else:
            raise e
def cudaCheckStatus ( status ) : if status != 0 : try : e = cudaExceptions [ status ] except KeyError : raise cudaError ( 'unknown CUDA error %s' % status ) else : raise e