minor update

This commit is contained in:
Blaise Tine
2021-05-18 11:14:31 -07:00
parent 3e88a71801
commit 2bdf8c9353
2 changed files with 4 additions and 2 deletions

View File

@@ -220,7 +220,8 @@ int main (int argc, char **argv) {
matmul(h_ref, h_a, h_b, size, size, size);
for (int i = 0; i < (size * size); i++) {
if (!almost_equal(h_c[i], h_ref[i])) {
printf("*** error: [%d] expected=%f, actual=%f\n", i, h_ref[i], h_c[i]);
if (errors < 100)
printf("*** error: [%d] expected=%f, actual=%f\n", i, h_ref[i], h_c[i]);
++errors;
}
}