Critical Issue
When emulating certain OpenCL designs, the Intel® FPGA SDK for OpenCL™ Emulator might consume all CPU resources and cause fatal errors.
To limit the process usage of the Emulator runtime for Windows and Linux, specify the CPU affinity for the Emulator by setting the CL_CONTEXT_EMULATOR_PROCESS_AFFINITY_MASK_ALTERA environment variable.
For example, to run the host program on the first four cores of the CPU only, invoke one of the following Linux commands:
env CL_CONTEXT_EMULATOR_DEVICE_ALTERA=1
CL_CONTEXT_EMULATOR_PROCESS_AFFINITY_MASK_ALTERA=15 host
or
env CL_CONTEXT_EMULATOR_DEVICE_ALTERA=1
CL_CONTEXT_EMULATOR_PROCESS_AFFINITY_MASK_ALTERA=0xF host