Login  Register

Re: Why CLEventList has fixed size?

Posted by Michael Bien on Mar 30, 2011; 5:29pm
URL: https://forum.jogamp.org/Why-CLEventList-has-fixed-size-tp2705613p2754718.html

  sure, setting a small framework on top of it should be easy. However
brining the heap and the GC strategy in correlation with native
resources is not recommended.

best regards,
michael

On 03/30/2011 06:46 PM, Wibowit [via jogamp] wrote:

>
> Sorry for late reply.
>
> I think I'll end up with my own Collection wrappers that will create lots of
> CLEventLists. Event objects are so small (on client side they're just
> pointers) that copying them is essentially free. If I were you then I'll
> just create a 10 kB (or 100 kB) ThreadLocal direct ByteBuffer and use if for
> receiving/ sending events from/ to OpenCL driver (if there is more data then
> I'll just allocate temporary another buffer). I would store Events in usual
> collection implementing standard List interface. I would also integrate
> Events with Garbage Collector, ie. automatic clReleaseEvent.
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/Why-CLEventList-has-fixed-size-tp2705613p2754482.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit