Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- You should run your host code using the following command:
env CL_CONTEXT_EMULATOR_DEVICE_ALTERA=1 host.exe Or run "set CL_CONTEXT_EMULATOR_DEVICE_ALTERA=1" in the same command window right before running your host code. The way it is, the host code is trying to use your integrated GPU (iGPU) which obviously wouldn't work using the FPGA emulator binary. --- Quote End --- Hi, Thanks for the reply. I tried "env CL_CONTEXT_EMULATOR_DEVICE_ALTERA=1 host.exe", but the command window showed "'env' is not an internal or external command". So I tried to run "set CL_CONTEXT_EMULATOR_DEVICE_ALTERA=1", and execute host.exe right away (in the same command window). However, I still got the same error message about CL_INVALID_BINARY.