From d010352ea3d480ba3c8e4304054e007180efe462 Mon Sep 17 00:00:00 2001 From: Caterina Gazzotti Date: Tue, 6 Dec 2022 08:42:50 -0500 Subject: [PATCH] fix the vector index (Y) --- atax/atax.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atax/atax.cu b/atax/atax.cu index 1fb0b1c..b5bd0f5 100644 --- a/atax/atax.cu +++ b/atax/atax.cu @@ -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; }