From b51b1fb96a922aae7394e92daec0c613346e016c Mon Sep 17 00:00:00 2001 From: gyulaid Date: Wed, 16 Mar 2022 09:20:12 +0100 Subject: [PATCH] linear kernel cleanup --- kernels/linear.cl | 8 -------- 1 file changed, 8 deletions(-) diff --git a/kernels/linear.cl b/kernels/linear.cl index 6d7a1c0..ba085af 100644 --- a/kernels/linear.cl +++ b/kernels/linear.cl @@ -84,10 +84,7 @@ void largeMV(const int n, const int m, __global float* y, __global float* A, __g if (z == 0) { y[i + t] = 0; } - //Q[id] = 0; for (size_t j = 0; j < n; j += T) { // oszlop kezdete ahol a modul van - - //Q[t * Z + z] += A[(j + z) + (i + t) * m] * x[i + t]; Q[t * Z + z] = A[(j + z) + (i + t) * m] * x[i + t]; barrier(CLK_LOCAL_MEM_FENCE); @@ -97,11 +94,6 @@ void largeMV(const int n, const int m, __global float* y, __global float* A, __g } barrier(CLK_LOCAL_MEM_FENCE); } - //if (z == 0) { - // for (size_t zz = 1; zz < Z; zz++) { - // Q[t * Z] += Q[t * Z + zz]; - // } - //} if (z == 0) { y[i + t] += Q[t * Z + 0]; }