Forum Discussion
okramer
Occasional Contributor
6 years agoOpenCL runtime error -42 (CL_INVALID_BINARY) trying to instantiate cl::Program object.
I created a simple OpenCL application with a trivial FPGA kernel to verify the build/run process, but am getting a -42 error code returned from the cl::Program constructor. Here's a snippet of the ho...
- 6 years ago
UPDATE: After doing the command line programming above, the OpenCL app doesn't complain at the cl::Program instantiation anymore. The app is now working. Magic.
MEIYAN_L_Intel
Frequent Contributor
6 years agoHi,
It might be due to the board is not match then the binary generated for the FPGA is not the correct one.
Thanks