()
Shutdown libraries used by scikit-cuda.

    Shutdown the CUBLAS, CULA, CUSOLVER, and MAGMA libraries used by 
    high-level functions provided by scikits-cuda.

    Notes
    -----
    This function does not shutdown PyCUDA.
Shutdown libraries used by scikit-cuda.
Shutdown libraries used by scikit - cuda .
def shutdown():
    """
    Shutdown libraries used by scikit-cuda.

    Shutdown the CUBLAS, CULA, CUSOLVER, and MAGMA libraries used by 
    high-level functions provided by scikits-cuda.

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

    global _global_cublas_handle
    if _global_cublas_handle:
        from . import cublas  # nest to avoid requiring cublas e.g. for FFT
        cublas.cublasDestroy(_global_cublas_handle)
        _global_cublas_handle = None

    global _global_cusolver_handle
    if _global_cusolver_handle:
        from . import cusolver
        cusolver.cusolverDnDestroy(_global_cusolver_handle)
        _global_cusolver_handle = None

    if _has_magma:
        magma.magma_finalize()
    if _has_cula:
        cula.culaShutdown()
def shutdown ( ) : global _global_cublas_handle if _global_cublas_handle : from . import cublas # nest to avoid requiring cublas e.g. for FFT cublas . cublasDestroy ( _global_cublas_handle ) _global_cublas_handle = None global _global_cusolver_handle if _global_cusolver_handle : from . import cusolver cusolver . cusolverDnDestroy ( _global_cusolver_handle ) _global_cusolver_handle = None if _has_magma : magma . magma_finalize ( ) if _has_cula : cula . culaShutdown ( )