Explorar o código

tests/datawizard/acquire_release_opencl.c: set directly local to 1, global being equal to 1, local cannot be bigger

Nathalie Furmento %!s(int64=13) %!d(string=hai) anos
pai
achega
8cb8bc6432
Modificáronse 1 ficheiros con 1 adicións e 11 borrados
  1. 1 11
      tests/datawizard/acquire_release_opencl.c

+ 1 - 11
tests/datawizard/acquire_release_opencl.c

@@ -42,17 +42,7 @@ void increment_opencl(void *buffers[], void *args)
 
 	{
 		size_t global=1;
-		size_t local;
-                size_t s;
-                cl_device_id device;
-
-                starpu_opencl_get_device(devid, &device);
-
-                err = clGetKernelWorkGroupInfo (kernel, device, CL_KERNEL_WORK_GROUP_SIZE, sizeof(local), &local, &s);
-                if (err != CL_SUCCESS)
-			STARPU_OPENCL_REPORT_ERROR(err);
-                if (local > global)
-			local=global;
+		size_t local=1;
 
 		err = clEnqueueNDRangeKernel(queue, kernel, 1, NULL, &global, &local, 0, NULL, &event);
 		if (err != CL_SUCCESS)