Intel® FPGA SDK for OpenCL™ Standard Edition: Cyclone® V SoC Getting Started Guide

ID 683030
Date 4/20/2022
Public
Document Table of Contents

3.8.3. Building the Host Application

Build your SoC FPGA-specific OpenCL™ host application using the GCC cross-compiler available with the Linux version of the SoC EDS.
  • To build your host application for emulation, modify the AOCL_BOARD_PACKAGE_ROOT environment variable setting to point to a non-SoC Reference or Custom Platform. Verify the setting by opening a shell and then typing echo $AOCL_BOARD_PACKAGE_ROOT at the command prompt.
  • To build your host application for kernel execution, verify that the AOCL_BOARD_PACKAGE_ROOT environment variable setting points to the Cyclone V SoC Development Kit Reference Platform.
  1. At a command prompt, invoke the following command to set the PATH environment variable:
    export PATH=<path_to_SoCEDS_installation_dir>/ds-5/sw/gcc/bin:$PATH
  2. Navigate to the <path_to_exm_opencl_hello_world_arm32_linux_<version>>/hello_world directory.
  3. Invoke the make -f Makefile command. Alternatively, you can simply invoke the make command.
    The hello_world executable is in the <path_to_exm_opencl_hello_world_arm32_linux_<version>>/hello_world/bin directory.