Skip to content
Snippets Groups Projects
  • Richard Berger's avatar
    2eb8d779
    Fixes a memory leak when using OpenCL · 2eb8d779
    Richard Berger authored
    The GPU package uses OpenCL events for measuring time. These have to be
    released to free up memory. I removed the clReleaseEvent() calls in the
    clear() method because in some cases they don't exist yet and I couldn't
    find a way to check for a valid event (clRetainEvent didn't work). This
    at least fixes the massive leak during simulations.
    
    See issue #1006
    2eb8d779
    History
    Fixes a memory leak when using OpenCL
    Richard Berger authored
    The GPU package uses OpenCL events for measuring time. These have to be
    released to free up memory. I removed the clReleaseEvent() calls in the
    clear() method because in some cases they don't exist yet and I couldn't
    find a way to check for a valid event (clRetainEvent didn't work). This
    at least fixes the massive leak during simulations.
    
    See issue #1006
ocl_timer.h 4.31 KiB