[PyOpenCL] CUDA 4.0 features

Andreas Kloeckner lists at informa.tiker.net
Sat Jun 4 19:02:56 PDT 2011


On Thu, 2 Jun 2011 10:28:40 +0200, Riaan van den Dool <riaanvddool at gmail.com> wrote:
> When I do cl.CreateSomeContext() it interactively chooses a specific device.
> What would be the procedure to create a context with multiple devices?

Fish out the devices you want, pass them to the 'devices' kwarg of the
context constructor:

http://documen.tician.de/pyopencl/runtime.html#pyopencl.Context

HTH,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pyopencl/attachments/20110604/caa58835/attachment.pgp>


More information about the PyOpenCL mailing list