Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OpenCL dep #636

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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