Example #1
0
void bli_herk_thrinfo_free( herk_thrinfo_t* thread)
{
    if( thread == NULL ) return;

    // Free Communicators
    if( thread_am_ochief( thread ) ) 
        bli_free_communicator( thread->ocomm );

    // Free Sub Thrinfos
    bli_packm_thrinfo_free( thread->opackm );
    bli_packm_thrinfo_free( thread->ipackm );
    bli_herk_thrinfo_free( thread->sub_herk );
    bli_free( thread );
        
    return; 
}
Example #2
0
void bli_gemm_thrinfo_free( gemm_thrinfo_t* thread)
{
    if( thread == NULL || thread == &BLIS_GEMM_SINGLE_THREADED ) return;

    // Free Communicators
    if( thread_am_ochief( thread ) )
        bli_free_communicator( thread->ocomm );

    // Free Sub Thrinfos
    bli_packm_thrinfo_free( thread->opackm );
    bli_packm_thrinfo_free( thread->ipackm );
    bli_gemm_thrinfo_free( thread->sub_gemm );
    bli_free( thread );
    
    return; 
}