Forum Discussion
JButt5
New Contributor
7 years agoWrong values when using CL_USE_HOST_PTR on a Cyclone V SoC
For research purposes regarding portability of OpenCL applications I set up a test application that measures the latency of memory enqueueing/dequeueing operations for the various possible API calls ...
FawazJ_Altera
Frequent Contributor
7 years agoHello,
The Allocating Shared Memory for OpenCL Kernels Targeting SoCs section of the programming guide mentions that CL_MEM_USE_HOST_PTR doesn’t work with shared memory configurations on SoCs. This appears to be the scenario that you are using now, so it’s expected not to work. In that section, the programming guide describes how to write host code to share data between the ARM CPU and FPGA. I suggest the customer review that example.
https://www.intel.com/content/www/us/en/programmable/documentation/iee1516128926240.html
Hope this might help.
Thanks