13.2.1. On Linux - 13.2.1. On Linux - 5.3 English - 57404

AOCL User Guide (57404)

Document_ID
57404
Release_Date
2026-05-13
Version
5.3 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.