FPGA AI Suite: SoC Design Example User Guide

ID 768979
Date 7/31/2024
Public
Document Table of Contents

3.8.2. Running the S2M Mode Demonstration Application

To run the S2M (streaming) mode demonstration application, you need two terminal connections to the host.

You must know the host name of the SoC FPGA development kit. If you do not know the development kit host name, go back to Determining the SoC FPGA Development Kit IP Address before continuing here.

To run the streaming demonstration application:
  1. Open an SSH connection to the SoC FPGA development kit:
    1. Start a new terminal session
    2. Run the following command:
      build-host:$ ssh <devkit_hostname>

      Where <devkit_hostname> is the host name you determined in Determining the SoC FPGA Development Kit IP Address.

      Continuing the example from Determining the SoC FPGA Development Kit IP Address, the following command would open an SSH connection:
      build-host:$ ssh arria10-62747948036a.local
  2. Repeat step 1 to open a second SSH connection to the SoC FPGA development kit.
  3. In a terminal session, run the following commands:
    cd /home/root/app
    ./run_inference_stream.sh
  4. In the other terminal session, run the following commands:
    cd /home/root/app
    ./run_image_stream.sh
The first terminal session (where you ran the run_inference_stream.sh command) then shows output similar to the following example:
root@arria10-ea80b8d770e7:~/app# ./run_inference_stream.sh
Runtime arch check is enabled. Check started...
Runtime arch check passed.
Runtime build version check is enabled. Check started...
Runtime build version check passed.
Ready to start image input stream.
1 - coffee mug, score = 93.9453
2 - acoustic guitar, score = 38.6963
3 - desktop computer, score = 43.9209
4 - guacamole, score = 99.9512
5 - red wine, score = 55.1758
6 - stopwatch, score = 38.8428
7 - jigsaw puzzle, score = 100

For more details about the streaming apps and their command line options, refer to Running the Streaming Demonstration.