1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-25 09:34:23 +00:00

fix the vector index (Y)

This commit is contained in:
Caterina Gazzotti 2022-12-06 08:42:50 -05:00
parent 86601b266e
commit d010352ea3

View file

@ -71,7 +71,7 @@ __host__ static void init_array(DATA_TYPE* A, DATA_TYPE* X, DATA_TYPE* Y)
X[y] = y * M_PI; X[y] = y * M_PI;
} }
for (unsigned int x = 0; x < NY; x++) for (unsigned int x = 0; x < NX; x++)
{ {
Y[x] = 0; Y[x] = 0;
} }