Minor updates to test/3m4m.

Details:
- Updated initial problem size and increment in Makefile.
- Updated code in test_gemm.c to correctly query kc from context.
This commit is contained in:
Field G. Van Zee
2017-03-17 12:10:24 -05:00
parent f484c6cd43
commit 6e7de6ef84
2 changed files with 13 additions and 17 deletions

View File

@@ -209,9 +209,9 @@ STR_ST := -DTHR_STR=\"st\"
STR_MT := -DTHR_STR=\"mt\"
# Problem size specification
PDEF_ST := -DP_BEGIN=80 \
PDEF_ST := -DP_BEGIN=40 \
-DP_END=2000 \
-DP_INC=80
-DP_INC=40
PDEF_MT := -DP_BEGIN=80 \
-DP_END=4000 \

View File

@@ -78,24 +78,20 @@ int main( int argc, char** argv )
n_input = -1;
k_input = -1;
#if 0
num_t dt_real = bli_datatype_proj_to_real( DT );
cntx_t cntx;
#if 1
bli_gemm_cntx_init( &cntx );
cntx_t cntx;
// Extract the kc blocksize for the requested datatype and its
// real analogue.
dim_t kc = bli_cntx_get_blksz_def_dt( dt, BLIS_KC, &cntx );
dim_t kc_real = bli_cntx_get_blksz_def_dt( dt_real, BLIS_KC, &cntx );
// Initialize a context for the current induced method and datatype.
bli_gemm_cntx_init( &cntx );
// Set k to the kc blocksize for the current datatype.
k_input = bli_cntx_get_blksz_def_dt( dt, BLIS_KC, &cntx );
#elif 0
k_input = 256;
// Assign the k dimension depending on which implementation is
// being tested. Note that the BLIS_NAT case handles the real
// domain cases as well as native complex.
if ( IND == BLIS_NAT ) k_input = kc;
else if ( IND == BLIS_3M1 ) k_input = kc_real / 3;
else if ( IND == BLIS_4M1A ) k_input = kc_real / 2;
else k_input = kc_real;
#endif
// Choose the char corresponding to the requested datatype.