Type: Answers

Area: OpenCL


Last Modified: November 09, 2017
Version Found: v17.1
Version Fixed: v17.1 Update 1
Bug ID: Unknown

Why does aocl install and aocl uninstall fail in Intel FPGA SDK for OpenCL17.1?

Description

On Microsoft Windows© platforms, OpenCL® emulation gives the following error and fails when an Intel GPU device is also present in the system:

“Context callback: Invalid binary.
ERROR: CL_INVALID_BINARY”

Workaround/Fix

In the host code when querying the platform, query for “Intel(R) FPGA” instead of “Intel” as shown below.

Change:

platform = findPlatform("Intel");

To:

platform = findPlatform("Intel(R) FPGA");

Remember that CL_CONTEXT_EMULATOR_DEVICE_ALTERA must be set to 1 for emulation.