mirror of
https://github.com/amd/blis.git
synced 2026-05-12 10:05:38 +00:00
Moved dynamic threading function from GEMMT to GEMM
Details: - Current tuning for choosing optimal number of threads is done for GEMM. - Dynamic thread calculation function was placed in gemmt code flow instead of gemm by mistake. Fixing it with this commit. AMD-Internal: [CPUPL-1376] Change-Id: Iccb42a7a617b9b4cdb4c4af9be21aa82aaaabbcc
This commit is contained in:
@@ -89,6 +89,13 @@ err_t bli_gemmsup_ref
|
||||
// return from the parallel/threaded region.
|
||||
if ( stor_id == BLIS_XXX ) return BLIS_FAILURE;
|
||||
|
||||
#ifdef AOCL_DYNAMIC
|
||||
// If dynamic-threading is enabled, calculate optimum number
|
||||
// of threads.
|
||||
// rntm will be updated with optimum number of threads.
|
||||
bli_nthreads_optimum(a, b, c, BLIS_GEMM, rntm );
|
||||
#endif
|
||||
|
||||
// Parse and interpret the contents of the rntm_t object to properly
|
||||
// set the ways of parallelism for each loop.
|
||||
bli_rntm_set_ways_from_rntm_sup
|
||||
@@ -165,12 +172,6 @@ err_t bli_gemmtsup_ref
|
||||
bli_scalm( beta, c );
|
||||
return BLIS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
#ifdef AOCL_DYNAMIC
|
||||
// If dynamic-threading is enabled, calculate optimum number
|
||||
// of threads.
|
||||
// rntm will be updated with optimum number of threads.
|
||||
bli_nthreads_optimum(a, b, c, BLIS_GEMM, rntm );
|
||||
#endif
|
||||
// Parse and interpret the contents of the rntm_t object to properly
|
||||
// set the ways of parallelism for each loop.
|
||||
|
||||
Reference in New Issue
Block a user