Skip to content

Commit

Permalink
Update OpenCL dep (#636)
Browse files Browse the repository at this point in the history
This OpenCL commit renamed some macros:
KhronosGroup/OpenCL-Headers@8de09e8

This breaks importing OpenCL into google internal, so fixing upstream.
  • Loading branch information
amaiorano authored Nov 15, 2023
1 parent 722aad9 commit e2701b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion external/OpenCL-Headers
Submodule OpenCL-Headers updated 1 files
+13 −5 CL/cl_ext.h
6 changes: 3 additions & 3 deletions src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5799,10 +5799,10 @@ cl_semaphore_khr cvk_create_semaphore_with_properties_khr(
type = value;
sema_props += 2;
has_type = true;
} else if (key == CL_DEVICE_HANDLE_LIST_KHR) {
} else if (key == CL_SEMAPHORE_DEVICE_HANDLE_LIST_KHR) {
properties.push_back(key);
sema_props++;
while (*sema_props != CL_DEVICE_HANDLE_LIST_END_KHR) {
while (*sema_props != CL_SEMAPHORE_DEVICE_HANDLE_LIST_END_KHR) {
auto devapi = reinterpret_cast<cl_device_id>(*sema_props);
if (!is_valid_device(devapi)) {
*errcode_ret = CL_INVALID_DEVICE;
Expand Down Expand Up @@ -6039,7 +6039,7 @@ cl_int clGetSemaphoreInfoKHR(const cl_semaphore_khr sema_object,
ret_size =
sem->properties().size() * sizeof(cl_semaphore_properties_khr);
break;
case CL_DEVICE_HANDLE_LIST_KHR:
case CL_SEMAPHORE_DEVICE_HANDLE_LIST_KHR:
copy_ptr = sem->devices().data();
ret_size = sem->devices().size() * sizeof(cl_device_id);
break;
Expand Down

0 comments on commit e2701b2

Please sign in to comment.