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