Skip to content

Commit e5793d8

Browse files
authored
Split failure count between comparison to SGEMM and naive loop
1 parent afbd7c2 commit e5793d8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/compare_sgemm_bgemm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ main (int argc, char *argv[])
4242
blasint x, y;
4343
blasint one = 1;
4444
int ret = 0;
45+
int ret2 = 0;
4546
int loop = BGEMM_LARGEST;
4647
char transA = 'N', transB = 'N';
4748
float alpha = 1.0, beta = 1.0;
@@ -143,6 +144,7 @@ main (int argc, char *argv[])
143144
printf("Mismatch at i=%d, j=%d, k=%d: CC=%.6f, DD=%.6f\n",
144145
i, j, k, float16to32(CC[i * m + j]), truncate_float32_to_bfloat16(DD[i * m + j]));
145146
#endif
147+
ret2++;
146148
ret++;
147149
}
148150

@@ -158,7 +160,7 @@ main (int argc, char *argv[])
158160
}
159161

160162
if (ret != 0) {
161-
fprintf(stderr, "BGEMM FAILURES: %d\n", ret);
163+
fprintf(stderr, "BGEMM FAILURES: %d (%d of which in comparison to naive loop)\n", ret,ret2);
162164
return 1;
163165
}
164166

0 commit comments

Comments
 (0)