Dear Gergő,

On Tue, 7 Feb 2012 09:13:03 -0800 (PST), Gerg Pintér <[email protected]> 
wrote:
> I'm new to opencl, I've just written my first code. It's tested and
> finally works. But, every time I start my python script kernel builds,
> which takes a lot of time. More than the running time itself. So, my
> question is: Isn't there any way to use a 'pre-compiled' kernel? I
> mean I build it once, and I give the builted one instead of the
> source.

PyOpenCL should already do what it can to get rid of this delay, i.e. it
will do a from-source compile only whenever your source code changes,
but otherwise cache the 'binary' it gets from OpenCL in its compiler
cache. By sticking print statements into pyopencl/cache.py, you should
be able to trace what's going on. This is also all that's possible to do
using the OpenCL API. What implementation are you using?

Andreas

Attachment: pgpoELRGoTTFR.pgp
Description: PGP signature

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to