ComputeEvent cleanup

Help
Anonymous
2011-06-29
2012-12-21

  • Anonymous
    2011-06-29

    Simple loop executing a kernel many times. Output shows many ComputeEvents being created. Memory usage climbs up, very high, and when I terminate the app, it sits there for ages

    WARNING! ComputeEvent(521689984) leaked.
    Disposing ComputeEvent(521689984) in Thread(2).
    WARNING! ComputeEvent(521682720) leaked.

    Etc. How do I ensure these objects are disposed of immediately? If I'm not using them, not adding them to a list… I don't think they should be generated.

     
  • nythrix
    nythrix
    2011-06-30

    You're right. They shouldn't be created if not required. Could you post the loop, please?