Forum Discussion
MEIYAN_L_Intel
Frequent Contributor
6 years agoHi,
The cl2.hpp is a wrapper API as shown in https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl_getting_started.pdf table 1. However it is not fully supported C++ and tied to OpenCL specification based on the version.
To read and write between the kernel and host, you may need to refer https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl_programming_guide.pdf in chapter 5.5.6.
Thanks