Article ID: 000077884 Content Type: Product Information & Documentation Last Reviewed: 12/07/2015

How should I use the OpenCL function clReleaseEvent to avoid memory leaks?

Environment

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description

Not releasing event created in the Altera® SDK for Open Computing Language (OpenCL™), using function such as cl_event, or en-queuing a task, can results in a system slow down resulting in excessive use of memory.

 

Resolution

clReleaseEvent, should be used as soon as the event is finished and it needs to be done explicitly by the programmer. Keeping event alive has memory impacts on the system, and this can not be avoided.

Related Products

This article applies to 1 products

Intel® Programmable Devices