cuda_cffi/misc.py
def shutdown():
    """
    Shutdown libraries used by cuda_cffi.

    Shutdown the cuSPARSE libraries used by high-level functions provided by
    cuda_cffi

    Notes
    -----
    This function does not shutdown PyCUDA.
    """

    global _global_cusparse_handle
    if _global_cusparse_handle:
        from . import cusparse
        cusparse.cusparseDestroy(_global_cusparse_handle)
        _global_cusparse_handle = None

    Shutdown libraries used by cuda_cffi.

    Shutdown the cuSPARSE libraries used by high-level functions provided by
    cuda_cffi

    Notes
    -----
    This function does not shutdown PyCUDA.
    
Shutdown libraries used by cuda_cffi.
Shutdown the cuSPARSE libraries used by high-level functions provided by
cuda_cffi

Notes

This function does not shutdown PyCUDA.
Shutdown libraries used by cuda_cffi . Shutdown the cuSPARSE libraries used by high - level functions provided by cuda_cffi Notes This function does not shutdown PyCUDA .
def shutdown():
    global _global_cusparse_handle
    if _global_cusparse_handle:
        from . import cusparse
        cusparse.cusparseDestroy(_global_cusparse_handle)
        _global_cusparse_handle = None
def shutdown ( ) : global _global_cusparse_handle if _global_cusparse_handle : from . import cusparse cusparse . cusparseDestroy ( _global_cusparse_handle ) _global_cusparse_handle = None
Shutdown libraries used by cuda_cffi.
Shutdown libraries used by cuda_cffi .
"""
    Shutdown libraries used by cuda_cffi.

    Shutdown the cuSPARSE libraries used by high-level functions provided by
    cuda_cffi

    Notes
    -----
    This function does not shutdown PyCUDA.
    """