0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 19:58:53 +02:00

ircd:🆑 Set completion status on offload thread to assert release propagation.

This commit is contained in:
Jason Volk 2021-10-15 11:41:22 -07:00
parent 9401c206a1
commit b4fb093876

View file

@ -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;
}