]> foleosoft.com Git - QAnsel.git/commitdiff
Thu Mar 7 06:58:05 PM EST 2024
authormiha-q <>
Thu, 7 Mar 2024 23:58:05 +0000 (18:58 -0500)
committermiha-q <>
Thu, 7 Mar 2024 23:58:05 +0000 (18:58 -0500)
src/complex.c

index ce2d8f57396bb53ebb907d8be816817141960906..0ae576febdba5cae58d20289c868c45b6f06d6df 100644 (file)
@@ -696,6 +696,16 @@ void cpx_mtx_knk_metal_2x2(float* ptrR, float* ptrA, float* ptrB, int rowsA, int
        err = clSetKernelArg(kernel,11, sizeof(float), &gate7); gpuerr(clSetKernelArg);
 
        size_t q = 2;
+
+       size_t max_work_group_size;
+    err = clGetDeviceInfo(cpx_mtx_device_id, CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(size_t), &max_work_group_size, NULL);
+    if (err != CL_SUCCESS) {
+        printf("Error getting device info\n");
+       exit(1);
+    }
+       printf(">%lu<\n", max_work_group_size);
+       exit(1);
+
        //Run the program
        err = clEnqueueNDRangeKernel(cpx_mtx_command_queue, kernel, 1, NULL, (size_t[]){rowsR / 2}, &q, 0, NULL, NULL);