Article ID: 000086272 Content Type: Error Messages Last Reviewed: 09/29/2017

Error: Received error code -42 on line 122 in host/src/OpenCL.c

Environment

    Intel® Quartus® Prime Pro Edition
    Intel® FPGA SDK for OpenCL™ Pro Edition
BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description

When you download "Multifunction Printer Error Diffusion" example design from the Website and compile it with a10soc_2ddr BSP, you might get the following error during runtime on the Arria® 10 SOC board.

Error: Received error code -42 on line 122 in host/src/OpenCL.c
Failed to initialize OpenCL environment.

Resolution

Two workaround the issue, please remove the line “CL_CONTEXT_COMPILER_MODE_ALTERA=3” in ~/init_opencl.sh and source ~/init_opencl.sh. Then run host again.

Related Products

This article applies to 1 products

Intel® Arria® 10 SX SoC FPGA

1