On Thursday 04 March 2010 07:59:34 pm Imran Haque wrote:
> I disagree. It's important to know if the CUDA libraries are getting 
> reinitialized; particularly on multi-GPU systems, there can be 
> significant overhead in calling cuInit. 
Agreed, 

> In particular, if your program uses libraries 
> that depend on pycuda, they shouldn't all be reinitializing CUDA unless 
> you ask them to.

Python only import modules once, it reuse already imported module so the 
initialization procedure would only be called at the first import.

That being said, i don't think pycuda should hide the cuinit call and the 
context creation. For that matter, the autoinit is probably the most 
transparent way to deal with it.

cheers, 

J-Pascal 


_______________________________________________
PyCUDA mailing list
pyc...@host304.hostmonster.com
http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net

Reply via email to