[PyCUDA] More Patches, and cuda.init() elimination

Andreas Klöckner lists at informa.tiker.net
Thu Mar 4 13:39:39 PST 2010


On Donnerstag 04 März 2010, Imran Haque wrote:
> Fabrizio Milo aka misto wrote:
> > does anyone has an example of a program where doesn't use the
> > cuda.autoimport before using any of the pycuda.* ?
> 
> Yes, my library (shameless plug: https://simtk.org/home/siml)

Cool--I've added that to 
http://wiki.tiker.net/PyCuda/ShowCase

Hope you don't mind.

Also: Everyone, if you have an application of PyCUDA that the world
should know about, please click that link up there and hit edit! :)


> manually
> handles CUDA initialization, because just getting "some" context from
> autoinit is not sufficient - I want to be able to select which device I
> get a context on, and potentially have multiple contexts on multiple
> devices (the library supports context-switching to simultaneously use
> multiple GPUs from a single thread).

Same here--my PDE solver also needs to handle init itself. For example,
forking can become strangely dangerous after cuInit(). Therefore my code
needs to control carefully when CUDA is initialized.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20100304/f6915e07/attachment-0001.pgp>


More information about the PyCUDA mailing list