mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd:🆑 Set completion status on offload thread to assert release propagation.
This commit is contained in:
parent
9401c206a1
commit
b4fb093876
1 changed files with 4 additions and 2 deletions
|
@ -2143,13 +2143,15 @@ ircd::cl::wait_event_offload(work &work,
|
|||
{
|
||||
offload_opts, [&c]
|
||||
{
|
||||
assert(c.status != CL_COMPLETE);
|
||||
call(clWaitForEvents, 1UL, &c.event);
|
||||
c.status = CL_COMPLETE;
|
||||
}
|
||||
};
|
||||
|
||||
char buf[4];
|
||||
//char buf[4];
|
||||
//c.status = info<int>(clGetEventInfo, c.event, CL_EVENT_COMMAND_EXECUTION_STATUS, buf);
|
||||
c.status = CL_COMPLETE;
|
||||
|
||||
assert(c.status == CL_COMPLETE);
|
||||
return c.status;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue