]> foleosoft.com Git - QAnsel.git/commitdiff
Sat Mar 2 10:40:09 PM EST 2024
authormiha-q <>
Sun, 3 Mar 2024 03:40:09 +0000 (22:40 -0500)
committermiha-q <>
Sun, 3 Mar 2024 03:40:09 +0000 (22:40 -0500)
src/gpu_mmul.cl

index 31cada3f02b39273d4268a5540b55c702122b99f..94b43d09cd58d4a50d0aad571de408f103df82fa 100644 (file)
@@ -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++)