summaryrefslogtreecommitdiff
path: root/test-chill/test-cases/examples/cuda-chill/tmv.c
blob: cb9ea8db5860a728b2cf3d46f4aee333d46bfd6f (plain)
1
2
3
4
5
6
7
8
9
#define N 1024

void normalMV(float c[N][N], float a[N], float b[N]) {
  int i, j;

  for (i = 0; i < N; i++)
    for (j = 0; j < N; j++)
      a[i] = a[i] + c[i][j] * b[j];
}