Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi Rudy,
I am running the emulation of hello_world under windows 64. While I can't find "env". Is that a binary executable file of Altera opencl sdk or a generated file from previous steps? In details: I managed successfully to execute the command "aoc -v -march=emulator hello_world.cl", After that, I compiled, without any issue, the hello_world host program. But, when I try to run the command "env CL_CONTEXT_EMULATOR_DEVICE_ALTERA=s5_ref hello_world", I get the following error message: 'env' is not recognized as an internal or external command, operable program or batch file. Could you help me to find a solution to this problem? Thanks and Regards, Michael --- Quote Start --- Bruce, What command are you using to run your host program? It should be: env CL_CONTEXT_EMULATOR_DEVICE_ALTERA=<board_name> <your_host_program_name> Also remember to check aocl linkflags. There should be an additional emulation library. I have gotten this to run on Linux but haven't tried windows. There are some prerequisites for running in Windows listed in the Altera Programming guide as well. Hope that helps. Rudy --- Quote End ---