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

ID 683846
Date 3/28/2022
Public

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

Document Table of Contents

6.6.2. Compiling and Linking Your Host Application

The OpenCL™ host application uses standard OpenCL runtime APIs to manage device configuration, data buffers, kernel launches, and synchronization. The host application also contains functions such as file I/O, or portions of the source code that do not run on an accelerator device. The Intel® FPGA SDK for OpenCL™ includes utility commands you can invoke to obtain information on C header files describing the OpenCL APIs, and board-specific MMD and host runtime libraries with which you must link your host application.
Important: For Windows systems, you must add the /MD flag to link the host runtime libraries against the multithreaded dynamic link library (DLL) version of the Microsoft C Runtime library. You must also compile your host application with the /MD compilation flag, or use the /NODEFAULTLIB linker option to override the selection of runtime library.
Remember: Include the path to the INTELFPGAOCLSDKROOT/host/<OS_platform>/bin folder in your library search path when you run your host application.