Altera_Forum
Honored Contributor
11 years agoc5soc memory allocation and use
As I understand it, in the Cyclone V Soc, the FPGA and HPS share a memory. It seems like this should make it possible for kernels to directly access variables used in the host program without needing the overhead of copying back and forth between host and device memory spaces. I assumed this would be accomplished by using OpenCL's buffer allocation flags such as USE_HOST_PTR and/or ALLOC_HOST_PTR, but in my experiments so far, these flags have not given any performance improvement (and in one case caused performance to slow). Also, I see that the example designs do not use these flags. What is the most efficient way the people have found to get data to and from the kernels on this platform?