Forum Discussion
beiwang2003
New Contributor
6 years agoError in using emulator mode with SDK 20.1 for hello_world example
I have quartus 19.2 and FPGA SDK 20.1. When trying to compile the OpenCL code with emulator mode: aoc -march=emulator -o ./bin/hello_world.aocx ./device/hello_world.cl, I had the following error mes...
beiwang2003
New Contributor
6 years agoHi, Anil,
I've tried this by replacing the current Altera.icd file at /etc/OpenCL/vendors/ with the one at .../19.4/hld/Altera.icd. It is still the same error message during running:Context callback: Malformed program binary: missing .acl.board section
Thanks
Bei
AnilErinch_A_Intel
Frequent Contributor
6 years agoHi,
It turns out that From version 19.4 onwards there are two options available
1. Legacy emulator
export CL_CONTEXT_EMULATOR_DEVICE_INTELFPGA=1
./host -legacy-emulator
2. If you want to use the fast emulator
export CL_CONFIG_CPU_EMULATE_DEVICES=1
./host -emulator
Please try both the options and let us know about the performance.
Thanks and Regards
Anil