Skip to content
Snippets Groups Projects
Commit d49ee3fc authored by Daniel Maier's avatar Daniel Maier
Browse files

test code

parent 9e0003fa
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,11 @@
#define M 1024
float A[N][M];
float X;
int main() {
int i, j;
int i, j, k;
struct timeval stop, start;
......@@ -21,18 +22,29 @@ int main() {
}
}
X = 0;
gettimeofday(&start, NULL);
#pragma scop
for(i = 0; i < N; i++) {
for(j = 0; j < M; j++) {
A[i][j] += 10;
for(k = 0; k < M; k++) {
A[i][j] += 10;
X++;
}
}
}
for(j = 0; j < M; j++) {
for(i = 0; i < N; i += 2) {
/*
A[j][i] *= 10;
A[j][i-2] *= 10;
*/
X = 1;
X += 2;
X *= 3;
}
}
#pragma endscop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment