Re: [pcre-dev] PCRE GPU offload

2013-02-13 Thread Roman Vasilyev
; 'Kristopher Kubicki' Subject: 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

Re: [pcre-dev] PCRE GPU offload

2013-02-13 Thread Roman Vasilyev
without uploading the whole input means to find place where to stop? If you can detect in pattern (E.g: /\p{Any}*/) that from this place till the end it will match whole string, you can stop uploading it into Buffer. Just return that from here you can copy whole data. In case if pattern expects

Re: [pcre-dev] PCRE GPU offload

2013-02-13 Thread Roman Vasilyev
Vasilyev Cc: pcre-dev@exim.org Subject: RE: [pcre-dev] PCRE GPU offload Now I'm completely clear where is the problem. But seems like OpenCL doing it same way as OpenSSL makes AES en/decryption. It uses 16byte blocks for operation, just you know you using full 16 or just part of it. And in case

Re: [pcre-dev] PCRE GPU offload

2013-02-13 Thread Zoltán Herczeg
you recommend me start point? As well as if I'll have patch for review can I send it here? -Original Message- From: Zoltán Herczeg [mailto:hzmes...@freemail.hu] Sent: Tuesday, February 12, 2013 1:47 PM To: Roman Vasilyev Cc: pcre-dev@exim.org Subject: RE: [pcre-dev] PCRE GPU offload Now

Re: [pcre-dev] PCRE GPU offload

2013-02-12 Thread Roman Vasilyev
...@bitzermobile.com] Sent: Tuesday, February 12, 2013 9:48 AM To: 'Kristopher Kubicki' Subject: RE: [pcre-dev] PCRE GPU offload This is exactly what I found J Want to ask, does exist something like in openssl, engine feature in PCRE? To have something like engine OpenCL or engine JIT. And extra question

Re: [pcre-dev] PCRE GPU offload

2013-02-12 Thread Zoltán Herczeg
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

Re: [pcre-dev] PCRE GPU offload

2013-02-12 Thread Zoltán Herczeg
Now I'm completely clear where is the problem. But seems like OpenCL doing it same way as OpenSSL makes AES en/decryption. It uses 16byte blocks for operation, just you know you using full 16 or just part of it. And in case of texture size, you can create smaller texture size and upload