13.2.1. On Linux - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

Run the application by either preloading the shared libaocl-libmem.so or by linking it with the static binary libaocl-libmem.a generated from the aforementioned build procedure.

$ LD_PRELOAD=<path to build/lib/libaocl-libmem.so> <executable> <params>
$ <compiler> <program> -L<path to build/lib> -l:libaocl-libmem.a

Note

Compiler should be Linux-based, and the linking-order of the libraries is important for the symbol resolution of the libmem supported functions.

For optimal performance, it is recommended to link with static library.