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

ID 683678
Date 9/24/2018
Public
Document Table of Contents

2.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 -board=<board_name> device/hello_world.cl -o=bin/hello_world_emulation.aocx

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