Host Program Objects - 2023.2 English

Vitis Guidance Messaging (UG1315)

Document ID
UG1315
Release Date
2023-10-18
Version
2023.2 English

Description

There are unreleased OpenCLâ„¢ objects in the host application program.

Explanation

The host code should manage all the OpenCL objects and should properly release them. Otherwise, it can cause resource leaks and potential issues in a long-running application. The profile and timeline trace data can also be captured incorrectly.

Resolution

Review your host code to ensure all the resources allocated are released properly.

Examples:

  • The cl_event should be released by clReleaseEvents.
  • The cl_buffer should be released by clReleaseMemObject.
  • The cl_program should be released by clReleaseProgram.