I need to pass a C++ vector of vectors to OpenCL kernel, for exemple, I have the follow data:
3 1 9 1 3 8 5 1 3 8 4
3 9 4 0 7 4 3
1 0 4 8 2 8 3 1 2
1 9 3 2
8 3 9 4
4 9 3 9 5 4 3
My structure of data in C++ is a vector of vectors:
- std::vector < std::vector < int > >
So, my structure is a vector of vectos with size 6 and the size of the vector 'i' is dynamic.
How can I pass the data to OpenCL kernel?
Any idea?
Thank you.