| 61 | } |
| 62 | |
| 63 | static void |
| 64 | printResult(const char* str) |
| 65 | { |
| 66 | size_t i, j, nrows; |
| 67 | |
| 68 | printf("%s:\n", str); |
| 69 | |
| 70 | nrows = (sizeof(result) / sizeof(cl_float)) / ldb; |
| 71 | for (i = 0; i < nrows; i++) { |
| 72 | for (j = 0; j < ldb; j++) { |
| 73 | printf("%.5e ", result[i * ldb + j]); |
| 74 | } |
| 75 | printf("\n"); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | int |
| 80 | main(void) |