From 77c638db67dcddd556e5d8e65feef2277abbe6f5 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 15 Feb 2025 20:37:48 +0100 Subject: [PATCH] Revert "Fix potential inaccuracy in multithreaded level3 related to SWITCH_RATIO" --- driver/level3/level3_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/level3/level3_thread.c b/driver/level3/level3_thread.c index a37292e8e..9b1aadf7d 100644 --- a/driver/level3/level3_thread.c +++ b/driver/level3/level3_thread.c @@ -742,7 +742,7 @@ 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 (width < switch_ratio && width > 1) { + if (width < switch_ratio) { width = switch_ratio; } width = round_up(n, width, GEMM_PREFERED_SIZE);