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”
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.