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.