Skip to content
Snippets Groups Projects
Verified Commit 5c08b7d3 authored by Dorian Stoll's avatar Dorian Stoll
Browse files

rodinia-srad: c: Iterate unconditionally

parent 43d9e813
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@
#define OPEN
#define ITERATION
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
......@@ -103,9 +102,7 @@ int main(int argc, char *argv[]) {
printf("Start the SRAD main loop\n");
#ifdef ITERATION
for (iter = 0; iter < niter; iter++) {
#endif
sum = 0;
sum2 = 0;
for (i = r1; i <= r2; i++) {
......@@ -184,10 +181,7 @@ int main(int argc, char *argv[]) {
J[k] = J[k] + 0.25 * lambda * D;
}
}
#ifdef ITERATION
}
#endif
for (int i = 0; i < rows; i++) {
......
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