mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-29 03:24:22 +00:00
fix the vector index (Y)
This commit is contained in:
parent
86601b266e
commit
d010352ea3
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ __host__ static void init_array(DATA_TYPE* A, DATA_TYPE* X, DATA_TYPE* Y)
|
|||
X[y] = y * M_PI;
|
||||
}
|
||||
|
||||
for (unsigned int x = 0; x < NY; x++)
|
||||
for (unsigned int x = 0; x < NX; x++)
|
||||
{
|
||||
Y[x] = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue