Freddie Witherden <[email protected]> writes:

> Hi Andreas,
>
> On 29/09/14 16:17, Andreas Kloeckner wrote:
>> GPUArrays don't actually care who "owns" the data, so if you're OK with
>> building a GPUArray as a 'descriptor' structure (which is quick and
>> lightweight) without moving any data around, then that would likely be a
>> reasonable way of going about this.
>> 
>> How does that sound?
>
> That sounds like exactly what I am looking for.  Do you have an API
> reference for wrapping an allocation with a GPUArray structure?

The GPUArray constructor takes an (undocumented) gpudata argument:

https://github.com/inducer/pycuda/blob/master/pycuda/gpuarray.py#L158

that should be castable to an int.

Andreas

Attachment: pgp7YufCKnAhz.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to