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

ID 683188
Date 12/13/2021
Public

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/hello_world.cl -o bin/hello_world.aocx

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