The following steps describe how to run an ALF application.
To run an application, do the following:
- Build the ALF application, both the host application
as an executable, my_appl, and the accelerator computational
kernel.
- Embed the SPE accelerator computational kernel
binary into a PPE shared library, my_appl.so.
- Copy the PPE shared library with the embedded
SPE binaries to a selected directory.
- Set the environment variable ALF_LIBRARY_PATH
to the the above selected directory on the Cell BE. For example:
export ALF_LIBRARY_PATH=/tmp/my_directory
- Execute the PPE host application. For example:
./my_appl