From: miha-q <> Date: Thu, 7 Mar 2024 23:58:05 +0000 (-0500) Subject: Thu Mar 7 06:58:05 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=a17b82bdb6a8c7d3272e6282636d131742f5d1d2;p=QAnsel.git Thu Mar 7 06:58:05 PM EST 2024 --- diff --git a/src/complex.c b/src/complex.c index ce2d8f5..0ae576f 100644 --- a/src/complex.c +++ b/src/complex.c @@ -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);