From ed00b0853ef4bfddf274272caef634c7c64b6c62 Mon Sep 17 00:00:00 2001 From: pratiklp00 Date: Wed, 5 Feb 2025 23:41:58 -0500 Subject: [PATCH] fix regression issue --- driver/level3/level3_thread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/driver/level3/level3_thread.c b/driver/level3/level3_thread.c index a37292e8e..062abc2a5 100644 --- a/driver/level3/level3_thread.c +++ b/driver/level3/level3_thread.c @@ -742,7 +742,11 @@ static int gemm_driver(blas_arg_t *args, BLASLONG *range_m, BLASLONG num_parts = 0; while (n > 0){ width = blas_quickdivide(n + nthreads - num_parts - 1, nthreads - num_parts); +#if defined(POWER) + if (width < switch_ratio ) { +#else if (width < switch_ratio && width > 1) { +#endif width = switch_ratio; } width = round_up(n, width, GEMM_PREFERED_SIZE);