Hello,

To fix some remaining issues with user events, i've done some changes to
the event handling code. You can view it here (last 6 commits only):

https://github.com/franz/pocl/commits/user_events

In particular, pocl_broadcast() now calls notify on events also in
CL_QUEUED state, and also calls notify on events which depend on failed
*user* events. Some problems remain:

1) i've updated all drivers except CUDA which seems to have its own way
of handling events. I'd appreciate if someone with knowledge of the
CUDA driver could update the driver, or talk to me in private about
fixing it

2) if i read the OpenCL spec correctly, after any event fails, the
state is "implementation defined", so we need to pick a behavior.
Calling abort() is probably undesirable ;) so i think we could mark the
command queue(s) as invalid, stop accepting new commands into them, and
set all dependent events to status failed; leave context and buffers
untouched. Does anyone know how do other implementations handle this ?

Comments / ideas welcome

Regards,
-- mb

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to