From ab3bc9153b914fbaf259e15b66c91d628e7c8661 Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Thu, 3 Jul 2014 11:19:43 -0500 Subject: [PATCH] Fixed a bug for TRSM when BLIS_ENABLE_MULTITHREADING is not set but the multithreading environment variables are turned on --- frame/3/trsm/bli_trsm_threading.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frame/3/trsm/bli_trsm_threading.c b/frame/3/trsm/bli_trsm_threading.c index 94de5e1ce..73832f4f8 100644 --- a/frame/3/trsm/bli_trsm_threading.c +++ b/frame/3/trsm/bli_trsm_threading.c @@ -109,16 +109,20 @@ void bli_trsm_thrinfo_free_paths( trsm_thrinfo_t** threads, dim_t num ) trsm_thrinfo_t** bli_create_trsm_thrinfo_paths( ) { +#ifdef BLIS_ENABLE_MULTITHREADING dim_t jc_in = bli_read_nway_from_env( "BLIS_JC_NT" ); /*dim_t kc_in = bli_read_nway_from_env( "BLIS_KC_NT" );*/ dim_t ic_in = bli_read_nway_from_env( "BLIS_IC_NT" ); dim_t jr_in = bli_read_nway_from_env( "BLIS_JR_NT" ); dim_t ir_in = bli_read_nway_from_env( "BLIS_IR_NT" ); + dim_t jr_way = jc_in * ic_in * jr_in * ir_in; +#else + dim_t jr_way = 1; +#endif dim_t jc_way = 1; dim_t kc_way = 1; dim_t ic_way = 1; - dim_t jr_way = jc_in * ic_in * jr_in * ir_in; dim_t ir_way = 1; dim_t global_num_threads = jc_way * kc_way * ic_way * jr_way * ir_way;