cl_khr_kernel_clock: fix builtin function names (#1968)
Some checks failed
Presubmit / Build ubuntu-22.04 gl (push) Failing after 2s
Presubmit / Build ubuntu-22.04 aarch64 debug (push) Failing after 1s
Presubmit / Build ubuntu-22.04 arm (push) Failing after 1s
Presubmit / Check code format (push) Failing after 5m1s
Presubmit / Build macos-latest (push) Has been cancelled
Presubmit / Build windows-latest (push) Has been cancelled

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 <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt 2024-05-30 00:14:17 +02:00 committed by GitHub
parent 1d3ad8d791
commit 75be6a3125
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,13 +96,13 @@ public:
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;
}
}