summaryrefslogtreecommitdiff
path: root/examples/chill/gemm.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/chill/gemm.c')
-rw-r--r--examples/chill/gemm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/chill/gemm.c b/examples/chill/gemm.c
new file mode 100644
index 0000000..355bafe
--- /dev/null
+++ b/examples/chill/gemm.c
@@ -0,0 +1,15 @@
+int main() {
+
+ float a[512][512], b[512][512], c[512][512];
+
+ int i, j, k;
+ int n;
+ for (j = 0; j < n; j++)
+ for (k = 0; k < n; k++)
+ for (i = 0; i < n; i++) {
+ c[i][j] = c[i][j] + a[i][k] * b[k][j];
+ }
+
+ return 0;
+}
+