Hi Alexey,

On Montag 16 Februar 2009, JU AV wrote:
> Recently I started using your python bindings for CUDA.
> I would like to know is it possible to save cubin file after
> driver.SourceModule compiles it In my work, I want to create optimized
> computational kernels for one time at first run of my program And then use
> precompiled kernel not to slower execution of my program. I know that
> SourceModule has keep parameter but it is not obvious how to use it in
> precompilation of computational kernels
> I would be grateful if you could help me to solve my problem

Check current git. I've moved SourceModule and its related infrastructure to 
pycuda.compiler. Now you can get the cubin that results from compilation by 
calling pycuda.compiler.compile with the same arguments as SourceModule. You 
can then do with it whatever you want. There's also 
pycuda.compiler.compile_plain() that skips a bunch of niceties that compile() 
has, such as caching, compute model detection, etc.

Andreas

PS: Don't worry, everybody else. SourceModule in pycuda.driver still exists--
it will print a (silenceable) deprecation warning once per Python interpreter 
invocation, though.

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to