Knowledge Base Article

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

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.

Updated 5 days ago
Version 3.0
No CommentsBe the first to comment