#13 Return events instead of adding them to list


I started playing with OpenCL/C#. I decided to use cloo but while porting OpenCL C program I get annoyed as I need to manage list manually.

I prefer the original OpenCL implementation when the event is returned separately instead of adding to list as it allows to not accumulate event continuously and have simpler management of them.


  • nythrix

    nythrix - 2012-02-04
    • status: open --> closed-wont-fix
  • nythrix

    nythrix - 2012-02-04

    See here first: http://sourceforge.net/tracker/?func=detail&aid=2944974&group_id=290412&atid=1229017
    There are some minor changes since then but it basically boils down to this:
    A) If you don't want to mess with events at all, skip them (and the lists) -> pass null
    B) If you need to stack up events pass a normal list. A new event will be added to it.
    C) If you need to specify an event list but do NOT want a new one to be created pass it as a read-only list.

    *) Currently the ComputeEventList built-in type cannot be set as read-only. However, you can still use a normal List<ComputeEventBase>. This isn't a feature, I've simply forgotten about it.
    I also noticed that the last option isn't consistently mentioned in the documentation. Should fix that too.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks