Intel® FPGA SDK for OpenCL™ Pro Edition: Programming Guide

ID 683846
Date 3/28/2022

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

8.3. 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.

Did you find the information on this page useful?

Characters remaining:

Feedback Message