Skip to content

Commit

Permalink
cl_khr_kernel_clock: fix builtin function names (#1968)
Browse files Browse the repository at this point in the history
According to the
[specification](https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_C.html#kernel-clock-functions),
the work_group and sub_group variants have an `_` in them.

Signed-off-by: Sven van Haastregt <[email protected]>
  • Loading branch information
svenvh authored May 29, 2024
1 parent 1d3ad8d commit 75be6a3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ class KernelClockTest {
break;
}
case CL_DEVICE_KERNEL_CLOCK_SCOPE_WORK_GROUP_KHR: {
sprintf(kernel_src, kernel_sources[i], "workgroup",
"workgroup");
sprintf(kernel_src, kernel_sources[i], "work_group",
"work_group");
break;
}
case CL_DEVICE_KERNEL_CLOCK_SCOPE_SUB_GROUP_KHR: {
sprintf(kernel_src, kernel_sources[i], "subgroup",
"subgroup");
sprintf(kernel_src, kernel_sources[i], "sub_group",
"sub_group");
break;
}
}
Expand Down

0 comments on commit 75be6a3

Please sign in to comment.