OpenCL resource tracker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

OpenCL resource allocation tracker

An LD_PRELOAD library that intercepts calls to and tracks references to OpenCL resources during the run-time of an application. It prints out allocation information at the end of the execution of the application as well as when receiving signals such as SIGUSR1.

Most of the code is a direct translation of the gobject-list library.

Build and usage

Install development files for glib-2.0 and libunwind if you want to see backtraces in case of problems. Run



meson build && cd build && ninja

to build the library and /path/to/application

to examine the lifetime of OpenCL resources.