Char*** in OpenCL kernel argument?
问题 I need to pass a vector<vector<string>> to a kernel OpenCL. What is the easiest way of doing it? Passing a char*** gives me an error: __kernel void vadd( __global char*** sets, __global int* m, __global long* result) {} ERROR: clBuildProgram(CL_BUILD_PROGRAM_FAILURE) 回答1: In OpenCL 1.x, this sort of thing is basically not possible. You'll need to convert your data such that it fits into a single buffer object, or at least into a fixed number of buffer objects. Pointers on the host don't make