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

ID 683188
Date 12/19/2022
Public
Document Table of Contents

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