Login  Register

Re: user events, CLEventList

Posted by Michael Bien on Mar 09, 2012; 5:47pm
URL: https://forum.jogamp.org/user-events-CLEventList-tp3811516p3813362.html

  hi michael (notzed),

i am still subscribed to this list and i am using jocl basically
fulltime. However i am either working on frameworks on top of jocl
(distributed computing and similar stuff) or writing kernels but use
only a small fraction of the CL 1.2 api. So your feedback is always
appreciated :)

lets take a look at CLEvents.
I remember i had a reason why i didn't add that.. but don't know what it
was. I will just go ahead and add a few utility methods (add(CLEvent)
and add(CLEventList)) and see how it works or where the problem was.

what was your other usecase regarding events again?

best regards,
michael (mbien)

On 03/09/2012 03:17 AM, notzed [via jogamp] wrote:

> I noticed the forums are a bit quiet for a good few months, has
> Michael B moved on?
>
> I have a problem regarding user events - although you can create them,
> wait on them and use them as an individual condition to another queued
> command, you cannot add them to an existing event list the way you can
> accumulate events for conditions as with the enqueue commands.
>
> i.e. i want something like the internal CLEventList.createEvent() but
> to add a user event to the list.  Actually just a simple
> CLEventList.addEvent(CLEvent) which works more or less the same would do.
>
> I can't just copy the populated event list and create another one with
> the new event added, as the event list is being populated via multiple
> calls from the level above, being passed by reference.
>
> I want to be able to create a call graph, and have asynchronous java
> code participate in the sequencing transparently.
>
> I suppose i'll have to write another patch ...
>