Knowledge Base Article
Can I run Intel OpenCL™ example design "Multifunction Printer Error Diffusion" on the Arria® 10 SoC dev kit with a10soc BSP?
Description
No. You can’t run the "Multifunction Printer Error Diffusion" example design on the Arria® 10 SoC board with a10soc BSP. When you compile the example design with a10soc BSP and run it on the board, you might get the following errors during runtime.
Error: Received error code -61 on line 351 in host/src/OpenCL.c
Error: Received error code -38 on line 368 in host/src/OpenCL.c
Performing OpenCL Error Diffusion
Error: Received error code -38 on line 60 in host/src/ErrorDiffusion_OpenCL.c
Failed to perform OpenCL Error Diffusion
Resolution
The error is due to allocating a buffer size greater than available on the device. The host program tries to allocate 134,640,000 bytes on device memory when the maximum allowed is 134,217,728 bytes.
Although the DDR4 module is 1GB on a10soc, the runtime only allows 128MB to be allocated by the OpenCL™ program, as it is shared between host and device.
Please run it with on Arria® 10 SoC dev kit with a10soc_2ddr BSP.