Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#13 Return events instead of adding them to list

v1.0_(example)
closed-wont-fix
nobody
5
2012-02-04
2012-01-30
Anonymous
No

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.

Discussion

  • 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.