mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-26 01:54:22 +00:00
init_array
: Format second for loop
This commit is contained in:
parent
ac1ec275d7
commit
0eb63cb684
1 changed files with 4 additions and 2 deletions
|
@ -32,9 +32,11 @@ static void init_array(int nx, int ny,
|
|||
|
||||
/// Initialize the `A` matrix with [something?]
|
||||
#pragma omp parallel for num_threads(THREAD_COUNT) schedule(static)
|
||||
for (i = 0; i < nx; i++)
|
||||
for (j = 0; j < ny; j++)
|
||||
for (i = 0; i < nx; i++) {
|
||||
for (j = 0; j < ny; j++) {
|
||||
A[i][j] = ((DATA_TYPE)i * (j + 1)) / nx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* DCE code. Must scan the entire live-out data.
|
||||
|
|
Loading…
Reference in a new issue