From 9ca734a687c37738f1601b8470edfa3265ff8c7a Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Sat, 2 Mar 2024 22:40:09 -0500 Subject: [PATCH] Sat Mar 2 10:40:09 PM EST 2024 --- src/gpu_mmul.cl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gpu_mmul.cl b/src/gpu_mmul.cl index 31cada3..94b43d0 100644 --- a/src/gpu_mmul.cl +++ b/src/gpu_mmul.cl @@ -8,12 +8,12 @@ __kernel void gpu_mmul const int shared ) { - int colsA = shared; - int rowsB = shared; - int rowsR = rowsA; - int colsR = colsB; - int row = get_global_id(0); - int col = get_global_id(1); + const int colsA = shared; + const int rowsB = shared; + const int rowsR = rowsA; + const int colsR = colsB; + const int row = get_global_id(0); + const int col = get_global_id(1); float sum = 0; for (int i = 0; i < colsR; i++) -- 2.39.5