Forum Discussion
Altera_Forum
Honored Contributor
8 years agoI am also having issues with running hello_world. My issue is I can use VS2010 to build host.exe and aol to build the hello_world.aocx but when I run host.exe, get the error
......... Command queue out of order? = false Command queue profiling enabled? = true Using AOCX: hello_world_emu.aocx Context callback: Invalid binary. ERROR: CL_INVALID_BINARY Location: ..\common\src\AOCLUtils\opencl.cpp:392 Failed to create program with binary The error code returned by createProgramFromBinary() call is -42 (CL_INVALID_BINARY) I use following command to generate the aocx file aoc -v -march=emulator --board c5soc hello_world.cl -o hello_world_emu.aocx aoc: Environment checks are completed successfully. You are now compiling the full flow!! aoc: Selected target board c5soc aoc: Running OpenCL parser.... aoc: OpenCL parser completed successfully. aoc: Compiling for Emulation .... aoc: Emulator Compilation completed successfully. Emulator flow is successful. To execute emulated kernel, invoke host with env CL_CONTEXT_EMULATOR_DEVICE_ALTERA=1 <host_program> For multi device emulations replace the 1 with the number of devices you wish to emulate Any suggestions why createProgramFromBinary is failing?