Article ID: 000074490 Content Type: Troubleshooting Last Reviewed: 12/14/2016

Emulation of an OpenCL Design Might Consume All CPU Resources and Cause a Fatal Error

Environment

BUILT IN - ARTICLE INTRO SECOND COMPONENT

Critical Issue

Description

When emulating certain OpenCL designs, the Intel® FPGA SDK for OpenCL™ Emulator might consume all CPU resources and cause fatal errors.

Resolution

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

Related Products

This article applies to 1 products

Intel® Programmable Devices