From 89702e1f4a8fbaf8f24f661eb6cca9f7f0e96a40 Mon Sep 17 00:00:00 2001 From: Chip Kerchner Date: Fri, 16 Aug 2024 11:37:39 -0500 Subject: [PATCH] Fix zero element GEMV test. --- test/compare_sgemm_sbgemm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/compare_sgemm_sbgemm.c b/test/compare_sgemm_sbgemm.c index eb47e83e5b..b8aaee8be3 100644 --- a/test/compare_sgemm_sbgemm.c +++ b/test/compare_sgemm_sbgemm.c @@ -202,9 +202,9 @@ main (int argc, char *argv[]) return ret; } - k = 1; for (x = 1; x <= loop; x++) { + k = (x == 0) ? 0 : 1; float *A = (float *)malloc_safe(x * x * sizeof(FLOAT)); float *B = (float *)malloc_safe(x * sizeof(FLOAT)); float *C = (float *)malloc_safe(x * sizeof(FLOAT));