When I do cl.CreateSomeContext() it interactively chooses a specific device.
What would be the procedure to create a context with multiple devices?

Riaan

On Wed, Jun 1, 2011 at 3:18 PM, Andreas Kloeckner
<[email protected]>wrote:

> On Wed, 1 Jun 2011 09:58:43 +0200, Riaan van den Dool <
> [email protected]> wrote:
> > I assume some of the new CUDA 4.0 features such as cross-device memory
> > referencing (I think they call it DirectAccess) will only be available in
> > PyOpenCL once the OpenCL specification includes them?
>
> It turns out that CL is actually already prepared to do this, at least
> in a sense. Memory allocations in CL are not tied to devices (but rather
> contexts, which can contain many devices). There's thus a way to call a
> kernel on device A with memory that resides on device B. Unfortunately,
> you don't get a lot of control over what memory resides where--I imagine
> that might be in the next standard. I.e. it's up to the implementation
> to decide whether to access the memory in place or copy it over to
> device A.
>
> Andreas
>
>
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to