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

ID 683342
Date 4/22/2019
Public
Document Table of Contents
Give Feedback

6.6.2.3. Listing OpenCL Host Runtime and MMD Libraries (ldlibs)

To display the names of the OpenCL host runtime and MMD libraries necessary for linking a host application, invoke the ldlibs utility command.
At a command prompt, invoke the aocl ldlibs utility command.

The software lists the OpenCL host runtime libraries residing in the INTELFPGAOCLSDKROOT/host/<OS_platform>/lib directory. It also lists the Custom Platform-specific MMD libraries residing in the /<board_family_name>/<OS_platform>/lib directory of your Custom Platform.

Note: If you set up FCD correctly, the software will not list the MMD libraries.
  • For Windows systems, the output might resemble the following example:
    alterahalmmd.lib
    <board_vendor_name>_<board_family_name>_mmd.[lib|so|a|dll]
    alteracl.lib
    acl_emulator_kernel_rt.lib
    pkg_editor.lib
    libelf.lib
    acl_hostxml.lib

    If you set up FCD correctly, the output will be OpenCL.lib.

  • For Linux systems, the output might resemble the following example:
    -lalteracl
    -ldl
    -lacl_emulator_kernel_rt
    -lalterahalmmd
    -l<board_vendor_name>_<board_family_name>_mmd
    -lelf
    -lrt
    -lstdc++
    

    If you set up FCD correctly, the output will be -lOpenCL.