(handle)
return version.value
Return CUSPARSE library version.

    Returns the version number of the CUSPARSE library.

    Parameters
    ----------
    handle : int
        CUSPARSE library context.

    Returns
    -------
    version : int
        CUSPARSE library version number.
Return CUSPARSE library version.
Return CUSPARSE library version .
def cusparseGetVersion(handle):
    """
    Return CUSPARSE library version.

    Returns the version number of the CUSPARSE library.

    Parameters
    ----------
    handle : int
        CUSPARSE library context.

    Returns
    -------
    version : int
        CUSPARSE library version number.

    """

    version = ctypes.c_int()
    status = _libcusparse.cusparseGetVersion(handle,
                                             ctypes.byref(version))
    cusparseCheckStatus(status)
    return version.value
def cusparseGetVersion ( handle ) : version = ctypes . c_int ( ) status = _libcusparse . cusparseGetVersion ( handle , ctypes . byref ( version ) ) cusparseCheckStatus ( status ) return version . value