From a17b82bdb6a8c7d3272e6282636d131742f5d1d2 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Thu, 7 Mar 2024 18:58:05 -0500 Subject: [PATCH] Thu Mar 7 06:58:05 PM EST 2024 --- src/complex.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); -- 2.39.5