Skip to content

Commit

Permalink
Added default device from context to be available for CL_SEMAPHORE_DE…
Browse files Browse the repository at this point in the history
…VICE_HANDLE_LIST_KHR query
  • Loading branch information
shajder committed Aug 29, 2024
1 parent 4c968aa commit c58d047
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions layers/11_semaemu/emulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,17 @@ typedef struct _cl_semaphore_khr
{
errorCode = CL_INVALID_PROPERTY;
}
else
{
cl_device_id device=0;
g_pNextDispatch->clGetContextInfo(
context,
CL_CONTEXT_DEVICES,
sizeof(cl_device_id),
&device,
nullptr);
devices.push_back(device);
}
}
else
{
Expand Down

0 comments on commit c58d047

Please sign in to comment.