From ec0d29c9079949b5796802aa1e5ea045e1c9c4d4 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Thu, 7 Mar 2024 20:14:02 -0500 Subject: [PATCH] Thu Mar 7 08:14:02 PM EST 2024 --- src/complex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/complex.c b/src/complex.c index f1faff3..4c63470 100644 --- a/src/complex.c +++ b/src/complex.c @@ -8,7 +8,7 @@ #include "cores.c" #include "kernel_cpu.cl" #include "kernel_gpu.cl" -#define OPTIMAL_WGS_KNK 2 +#define OPTIMAL_WGS_KNK 1 typedef struct { float real, imaginary; @@ -753,7 +753,7 @@ void cpx_mtx_knk_metal_2x2(float* ptrR, float* ptrA, float* ptrB, int rowsA, int err = clSetKernelArg(kernel,11, sizeof(float), &gate7); gpuerr(err); //Run the program - size_t wgs[2] = {OPTIMAL_WGS_KNK}; + size_t wgs[] = {OPTIMAL_WGS_KNK}; err = clEnqueueNDRangeKernel(cpx_mtx_command_queue, kernel, 1, NULL, (size_t[]){rowsR / 2}, wgs, 0, NULL, NULL); gpuerr(err); -- 2.39.5