Re: [pcre-dev] opencl

2012-12-10 Thread Zoltán Herczeg
No strong opinion. I think the use case matters. Your example is a simple implementation of posix regex. PCRE is much more complex, but if you don't need its features, this simple code can do as well. PCRE searches the first occurrence of a pattern, and returns a lot of info like the position

[pcre-dev] opencl

2012-12-05 Thread james jones
Has anyone gotten PCRE ported for OpenCL or Cuda? -James -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev

Re: [pcre-dev] opencl

2012-12-05 Thread Zoltán Herczeg
Hi, I don't think so. In WebKit we did some OpenCL optimizations, but I am not sure the general concept of a backtracking, NFA based engine is suitable for OpenCL. At least the whole engine is surely way too big. Perhaps something like the JIT compiler could work, just generating C like code

Re: [pcre-dev] opencl

2012-12-05 Thread james jones
I have been able to port and compile the one below but I am having a little trouble with getting strings from ram to the memory on the graphics. Getting a lot memory access error right before a seg fault. I am just doing it wrong and need to make sure I am copying the array correctly. I have not