Commit 36db08c6 authored by Alexandru Dura's avatar Alexandru Dura

Change the initialization values

parent e5a4853a
......@@ -32,7 +32,7 @@ void NOINLINE initialize(double *d, int n, double val) {
#pragma omp for NOWAIT \
schedule(SCHEDULE, CHUNK_SIZE)
for (int i = 0; i < n; ++i) {
d[i] = val;
d[i] = i;
}
}
......
......@@ -27,7 +27,7 @@ void NOINLINE initialize(double *d, int n, double val) {
#pragma omp parallel for \
schedule(SCHEDULE, CHUNK_SIZE)
for (int i = 0; i < n; ++i) {
d[i] = val;
d[i] = i;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment