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; }
void bli_gemm_thrinfo_free_paths( gemm_thrinfo_t** threads, dim_t num ) { for( int i = 0; i < num; i++) bli_gemm_thrinfo_free( threads[i] ); bli_free_intl( threads ); }