Running an application

The following steps describe how to run an ALF application.

To run an application, do the following:
  1. Build the ALF application, both the host application as an executable, my_appl, and the accelerator computational kernel.
  2. Embed the SPE accelerator computational kernel binary into a PPE shared library, my_appl.so.
  3. Copy the PPE shared library with the embedded SPE binaries to a selected directory.
  4. 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
  5. Execute the PPE host application. For example:
    ./my_appl