Forum Discussion

DongWang-BJTU's avatar
DongWang-BJTU
Icon for Occasional Contributor rankOccasional Contributor
6 years ago

Error when performing emulation for v19.3

I have recently upgraded to OpenCLSDK v19.3 for FPGA, but the emulator generates the following error when I was tring to perform emulation:

Error: Malformed program binary: missing .acl.board section

Error: kernel argument info is not available

Error: Invalid binary

ERROR: CL_INVALID_BINARY

The same code works fine for both 18.1 and 19.1.

I was using Ubuntu 16.04.6, gcc was upgraded to v6.5 (gcc version 6.5.0 20181026 (Ubuntu 6.5.0-2ubuntu1~16.04))

The following env has also been set

export CL_CONFIG_CPU_EMULATE_DEVICES=1

Does anyone know what I am missing ?

3 Replies

  • DongWang-BJTU's avatar
    DongWang-BJTU
    Icon for Occasional Contributor rankOccasional Contributor

    The helloworld example in the hld dir also fails:

    Querying platform for info:

    ==========================

    CL_PLATFORM_NAME = Intel(R) FPGA SDK for OpenCL(TM)

    CL_PLATFORM_VENDOR = Intel(R) Corporation

    CL_PLATFORM_VERSION = OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version 19.3

    Querying device for info:

    ========================

    CL_DEVICE_NAME = EmulatorDevice : Emulated Device

    CL_DEVICE_VENDOR = Intel(R) Corporation

    CL_DEVICE_VENDOR_ID = 4466

    CL_DEVICE_VERSION = OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version 19.3

    CL_DRIVER_VERSION = 19.3

    CL_DEVICE_ADDRESS_BITS = 64

    CL_DEVICE_AVAILABLE = true

    CL_DEVICE_ENDIAN_LITTLE = true

    CL_DEVICE_GLOBAL_MEM_CACHE_SIZE = 32768

    CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE = 0

    CL_DEVICE_GLOBAL_MEM_SIZE = 67381947392

    CL_DEVICE_IMAGE_SUPPORT = false

    CL_DEVICE_LOCAL_MEM_SIZE = 16384

    CL_DEVICE_MAX_CLOCK_FREQUENCY = 1000

    CL_DEVICE_MAX_COMPUTE_UNITS = 1

    CL_DEVICE_MAX_CONSTANT_ARGS = 8

    CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE = 16845486848

    CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS = 3

    CL_DEVICE_MEM_BASE_ADDR_ALIGN = 8192

    CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE = 1024

    CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR = 4

    CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT = 2

    CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT = 1

    CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG = 1

    CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT = 1

    CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE = 0

    Command queue out of order? = true

    Command queue profiling enabled? = true

    Using AOCX: hello_world.aocx

    Context callback: Malformed program binary: missing .acl.board section

    Context callback: kernel argument info is not available

    Context callback: Invalid binary

    ERROR: CL_INVALID_BINARY

    Location: ../common/src/AOCLUtils/opencl.cpp:407

    Failed to create program with binary

  • DongWang-BJTU's avatar
    DongWang-BJTU
    Icon for Occasional Contributor rankOccasional Contributor

    problem solved after I replaced the old Altera.icd file with the new one in the 19.3 folder.

  • MEIYAN_L_Intel's avatar
    MEIYAN_L_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,

    I am glad to see your problem had been solved.

    Thanks for update.

    Thanks