]> foleosoft.com Git - QAnsel.git/commitdiff
Thu Mar 7 08:14:02 PM EST 2024
authormiha-q <>
Fri, 8 Mar 2024 01:14:02 +0000 (20:14 -0500)
committermiha-q <>
Fri, 8 Mar 2024 01:14:02 +0000 (20:14 -0500)
src/complex.c

index f1faff3b186f6d26a39ff015c5e9b036da34c5d5..4c6347091ac214ded62813f70c6454d6d5da5513 100644 (file)
@@ -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);