aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/kernel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/kernel.cpp b/src/core/kernel.cpp
index f84854a..05b276e 100644
--- a/src/core/kernel.cpp
+++ b/src/core/kernel.cpp
@@ -771,7 +771,6 @@ cl_int Kernel::workGroupInfo(DeviceInterface *device,
switch (param_name)
{
- case CL_KERNEL_GLOBAL_WORK_SIZE:
case CL_KERNEL_WORK_GROUP_SIZE:
SIMPLE_ASSIGN(size_t, dep.kernel->workGroupSize());
break;
@@ -799,6 +798,9 @@ cl_int Kernel::workGroupInfo(DeviceInterface *device,
SIMPLE_ASSIGN(size_t, dep.kernel->preferredWorkGroupSizeMultiple());
break;
+ case CL_KERNEL_GLOBAL_WORK_SIZE:
+ // Per the v1.2 spec, must return CL_INVALID_VALUE if *not* a custom device or
+ // built-in kernel (we are neither):
default:
return CL_INVALID_VALUE;
}