Skip to content

Examples

Estimated reading time: 5 minutes

The following application examples demonstrate how to use Coral FPGA Resource Manager, to automatically scale your accelerated solutions using in-house or 3rd-party accelerators, from high-level programming languages.

1. Prerequisites-

  • Docker Community Edition (CE)

  • FPGA Runtime (Intel or Xilinx)

  • Git | OpenJDK (Java Development Kit) 8 | Maven

  • OpenCV 3.4.2

Amazon F1

Find InAccel Default Image, equipped with all the required development tools (and many more), available free on EC2 Community AMIs section.

2. Download InAccel release-

git clone https://bitbucket.org/inaccel/release.git inaccel && cd inaccel

Computer Vision-

Acknowledgements:

The Computer vision accelerators (FPGA bitstreams/kernels) used for the purposes of this demonstation are written by developers at Xilinx.

Resources:


Fetching accelerators from InAccel Store-

inaccel bitstream install https://store.inaccel.com/artifactory/bitstreams/com/xilinx/vision/0.1/xilinx/u200/xdma_201820.1/Affine_Convolve
inaccel bitstream install https://store.inaccel.com/artifactory/bitstreams/com/xilinx/vision/0.1/xilinx/u200/xdma_201820.1/Affine_EdgeDetection
inaccel bitstream install https://store.inaccel.com/artifactory/bitstreams/com/xilinx/vision/0.1/xilinx/aws-vu9p-f1-04261818/dynamic_5.0/Affine_Convolve
inaccel bitstream install https://store.inaccel.com/artifactory/bitstreams/com/xilinx/vision/0.1/xilinx/aws-vu9p-f1-04261818/dynamic_5.0/Affine_EdgeDetection

Launching InAccel Coral-

To start inaccel coral container:

inaccel coral start

Warning

To install InAccel (CLI + Container Runtime) please refer to the Get InAccel guide.

Building the Examples-

To build the example programs, run:

mvn -f examples/coral/pom.xml package

Running the Examples-

Run Affine Application [src]

bin/run-coral-example vision.Affine data/vision

Run Convolve Application [src]

bin/run-coral-example vision.Convolve data/vision

Run EdgeDetection Application [src]

bin/run-coral-example vision.EdgeDetection data/vision