Autor: Zoltán Herczeg Fecha: A: Roman Vasilyev Cc: pcre-dev Asunto: Re: [pcre-dev] PCRE GPU offload
> Sorry, understood. > So main idea, that OpenCl not fits PCRE let's call it "string stream"?
Yes. If your input is let's say 1 Mbyte, and you search /abc/, and it is found in the first 100 bytes, running the same kernel on the remaining 1 million - 100 starting positions is a waste of time. I am not sure you can stop the kernels after the first match. And uploading the 1Mbyte input, programming the device is costly as well. It is much faster to scan the first 100 byte one-by-one.