Intel® FPGA RTE for OpenCL™ Standard Edition: Getting Started Guide

ID 683550
Date 9/24/2018
Public
Document Table of Contents

4.2.7.1. 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 typingecho $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 will be in the <path_to_exm_opencl_hello_world_arm32_linux_<version>>/hello_world/bin directory.