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.2. Compiling a Kernel for Emulation (-march=emulator)

To compile an OpenCL™ kernel for emulation, include the -march=emulator option in your aoc command.
  • Before you perform kernel emulation, perform the following tasks:
    • Verify that the environment variable QUARTUS_ROOTDIR_OVERRIDE points to Intel® Quartus® Prime Pro Edition software installation folder.
  • Verify that the LD_LIBRARY_PATH environment variable setting includes all the paths described in the Setting the Intel® FPGA SDK for OpenCL™ Pro Edition User Environment Variables section in the Intel® FPGA SDK for OpenCL™ Pro Edition Getting Started Guide.
  • To create kernel programs that are executable on x86-64 host systems, invoke the following command:
    aoc -march=emulator <your_kernel_filename>.cl
  • For Linux systems, the Intel® FPGA SDK for OpenCL™ Offline Compiler offers symbolic debug support for the debugger.
    The offline compiler debug support allows you to pinpoint the origins of functional errors in your kernel source code.