Merge branch 'master' into graphics

This commit is contained in:
Blaise Tine
2021-05-26 23:33:06 -07:00
120 changed files with 4269 additions and 2329 deletions

View File

@@ -129,6 +129,8 @@ static void parse_args(int argc, char **argv) {
printf("Error: invalid size!\n");
exit(-1);
}
printf("Workload size=%d\n", size);
}
int main (int argc, char **argv) {
@@ -218,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;
}
}