On Wed, 5 Oct 2011 19:59:16 -0300, andrew cooke <[email protected]> wrote: > i am having trouble working out how to clear the kernel cache. the docs > suggest clear_context_caches() from pyopencl.tools, but it doesn't seem to be > there: > > Python 3.2 (r32:88445, Jun 9 2011, 09:31:13) > [GCC 4.5.1 20101208 [gcc-4_5-branch revision 167585]] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from pyopencl.tools import clear_context_caches > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: cannot import name clear_context_caches > >>> from pyopencl import VERSION > >>> VERSION > (2011, 1, 2) > > what should i be doing?
1) Why do you need to clear the cache? Whatever it is, it's likely indicative of a bug in PyOpenCL. 2) rm -Rf /tmp/pyopencl-compiler-cache-v2-uidandreas-py2.6.7.final.0/ (With different values subsituted in in the obvious places.) 3) The facility you found only caches the stage from array operator to kernel, i.e. it is more specialized. Andreas
pgps3ssDOIWFQ.pgp
Description: PGP signature
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
