Intel® FPGA SDK for OpenCL™ Pro Edition: Getting Started Guide

ID 683188
Date 12/13/2021

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

Document Table of Contents

2.6.2. Compiling a Kernel for Emulation3.6.2. Compiling a Kernel for Emulation

To compile an OpenCL™ kernel for emulation, include the -march=emulator option in your aoc command.
To compile the kernel for your target FPGA board, at a command prompt, navigate to the hello_world design and then invoke the following command:
aoc -march=emulator -v device/ -o bin/hello_world.aocx

The Intel® FPGA SDK for OpenCL™ Offline Compiler compiles the kernel source file and creates the hello_world.aocx emulation-specific executable file in the bin subdirectory.