How to process string in opencl kernel from buffer of N fixed length strings?
问题 I am required to process N fixed-length strings in parallel on an OpenCL device. Processing a string involves calling function that is provided, that takes a string as input represented as a buffer, and the length of the string in that buffer. void Function(const char *input_buffer, const int string_length, const char *output_buffer) Inside the host application I have concatenated the N strings into a large char buffer, with no separator between them. I would like to create a kernel with a