diff --git a/frame/3/gemm/bli_gemm_threading.c b/frame/3/gemm/bli_gemm_threading.c index 15ef24e36..58b244e77 100644 --- a/frame/3/gemm/bli_gemm_threading.c +++ b/frame/3/gemm/bli_gemm_threading.c @@ -138,7 +138,7 @@ gemm_thrinfo_t** bli_create_gemm_thrinfo_paths( ) dim_t ir_nt = 1; - gemm_thrinfo_t** paths = (gemm_thrinfo_t**) malloc( global_num_threads * sizeof( gemm_thrinfo_t* ) ); + gemm_thrinfo_t** paths = (gemm_thrinfo_t**) bli_malloc( global_num_threads * sizeof( gemm_thrinfo_t* ) ); thread_comm_t* global_comm = bli_create_communicator( global_num_threads ); for( int a = 0; a < jc_way; a++ ) diff --git a/frame/3/herk/bli_herk_threading.c b/frame/3/herk/bli_herk_threading.c index 0f708a72c..089ce278d 100644 --- a/frame/3/herk/bli_herk_threading.c +++ b/frame/3/herk/bli_herk_threading.c @@ -137,7 +137,7 @@ herk_thrinfo_t** bli_create_herk_thrinfo_paths( ) dim_t ir_nt = 1; - herk_thrinfo_t** paths = (herk_thrinfo_t**) malloc( global_num_threads * sizeof( herk_thrinfo_t* ) ); + herk_thrinfo_t** paths = (herk_thrinfo_t**) bli_malloc( global_num_threads * sizeof( herk_thrinfo_t* ) ); thread_comm_t* global_comm = bli_create_communicator( global_num_threads ); for( int a = 0; a < jc_way; a++ ) diff --git a/frame/3/trmm/bli_trmm_threading.c b/frame/3/trmm/bli_trmm_threading.c index 084484f04..173910d55 100644 --- a/frame/3/trmm/bli_trmm_threading.c +++ b/frame/3/trmm/bli_trmm_threading.c @@ -142,7 +142,7 @@ trmm_thrinfo_t** bli_create_trmm_thrinfo_paths( bool_t jc_dependency ) dim_t ir_nt = 1; - trmm_thrinfo_t** paths = (trmm_thrinfo_t**) malloc( global_num_threads * sizeof( trmm_thrinfo_t* ) ); + trmm_thrinfo_t** paths = (trmm_thrinfo_t**) bli_malloc( global_num_threads * sizeof( trmm_thrinfo_t* ) ); thread_comm_t* global_comm = bli_create_communicator( global_num_threads ); for( int a = 0; a < jc_way; a++ ) diff --git a/frame/3/trsm/bli_trsm_threading.c b/frame/3/trsm/bli_trsm_threading.c index b2935114d..862fd07a7 100644 --- a/frame/3/trsm/bli_trsm_threading.c +++ b/frame/3/trsm/bli_trsm_threading.c @@ -144,7 +144,7 @@ trsm_thrinfo_t** bli_create_trsm_thrinfo_paths( bool_t right_sided ) dim_t ir_nt = 1; - trsm_thrinfo_t** paths = (trsm_thrinfo_t**) malloc( global_num_threads * sizeof( trsm_thrinfo_t* ) ); + trsm_thrinfo_t** paths = (trsm_thrinfo_t**) bli_malloc( global_num_threads * sizeof( trsm_thrinfo_t* ) ); thread_comm_t* global_comm = bli_create_communicator( global_num_threads ); for( int a = 0; a < jc_way; a++ )