From: miha-q <>
Date: Fri, 8 Mar 2024 00:23:41 +0000 (-0500)
Subject: Thu Mar  7 07:23:41 PM EST 2024
X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=cf03501c0e555000f3b76e81dfffc1ffee79fabc;p=QAnsel.git

Thu Mar  7 07:23:41 PM EST 2024
---

diff --git a/src/complex.c b/src/complex.c
index 8fcdfbe..2d632df 100644
--- a/src/complex.c
+++ b/src/complex.c
@@ -751,10 +751,10 @@ void cpx_mtx_knk_metal_2x2(float* ptrR, float* ptrA, float* ptrB, int rowsA, int
 	err = clSetKernelArg(kernel,10, sizeof(float), &gate6); gpuerr(err);
 	err = clSetKernelArg(kernel,11, sizeof(float), &gate7); gpuerr(err);
 
-	size_t q = 2;
 
 	//Run the program
-	err = clEnqueueNDRangeKernel(cpx_mtx_command_queue, kernel, 1, NULL, (size_t[]){rowsR / 2}, &q, 0, NULL, NULL);
+	size_t wgs = 2;
+	err = clEnqueueNDRangeKernel(cpx_mtx_command_queue, kernel, 1, NULL, (size_t[]){rowsR / 2}, &wgs, 0, NULL, NULL);
 	gpuerr(err);
 
 	//Wait for completion