Forum Discussion
Altera_Forum
Honored Contributor
9 years agoGot CL_INVALID_BINARY error when emulated HelloWorld example on Windows
I followed the "aocl_getting_started.pdf" instruction to implement the hello_world example on Window. But I got error message about CL_INVALID_BINARY when I tried to run the emulator. The st...
Altera_Forum
Honored Contributor
9 years agoIt is still trying to use your GPU. The GPU should not be detected at all if the host code is compiled correctly; you probably have made some mistake in compiling your host code.
Still, try this: host\src\main.cpp, line 136, change:devices.reset(getDevices(platform, CL_DEVICE_TYPE_ALL, &num_devices)); with: devices.reset(getDevices(platform, CL_DEVICE_TYPE_ACCELERATOR, &num_devices)); And see if it detects Altera's emulated device instead. If it doesn't find anything, then you have made some mistake in compiling/linking the host code.