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 steps that I've done are as following:
1. "%ALTERAOCLSDKROOT%\init_opencl.bat", set environment.
2. "aoc -march=emulator -v --board s5_ref device/hello_world.cl -o bin/hello_world.aocx", built hello_world.aocx file successlly.
3. "set CL_CONTEXT_EMULATOR_DEVICE_ALTERA=1 host.exe"
4. Built host program(host.exe) from Visual Studio 2010 successlly.
5. Under folder hello_world\bin. Run host.exe on cmd, and get the error message as the image in the attachment.
Using AOCX: hello_world.aocx
Context callback: Invalid binary.
ERROR: CL_INVALID_BINARY
Location: ..\common\src\AOCLUtils\opencl.cpp:392
Failed to create program with binary
Is there any step I missed? Please advice.
Thank you.
The steps that I've done are as following:
1. "%ALTERAOCLSDKROOT%\init_opencl.bat", set environment.
2. "aoc -march=emulator -v --board s5_ref device/hello_world.cl -o bin/hello_world.aocx", built hello_world.aocx file successlly.
3. "set CL_CONTEXT_EMULATOR_DEVICE_ALTERA=1 host.exe"
4. Built host program(host.exe) from Visual Studio 2010 successlly.
5. Under folder hello_world\bin. Run host.exe on cmd, and get the error message as the image in the attachment.
Using AOCX: hello_world.aocx
Context callback: Invalid binary.
ERROR: CL_INVALID_BINARY
Location: ..\common\src\AOCLUtils\opencl.cpp:392
Failed to create program with binary
Is there any step I missed? Please advice.
Thank you.