"Healther.astro" <healther.astro(a)gmail.com> writes:
I have some kernels which will be used over and over
again, but as the compile time of them is pretty high (something like half an hour, for
some hundred kernels). I would like to ensure that they are stored permanently on my
computer, as opposed to the storage in the tmp folder, where they are deleted at some
Is there a way to customize the folder in which those compiler caches are stored?
SourceModule has a cache_dir kwarg.
And is there a way to find out which of the folders
belong to which kernel?
No, and you shouldn't try. :) If you want to save individual kernels,
just call pycuda.compiler.compile and store/cache the result yourself.