On Freitag 04 Dezember 2009, you wrote:
> Hi Andreas -
> As part of my work to get host cuda functions compilable through PyCUDA,
>  I've needed to come up with a mechanism for creating GPUArrays from device
>  pointers produced by host functions.  I've been able to do that, but only
>  by commenting out an assertion in gpuarray.py on line 89: if gpudata is
>  None:
>   ...
> else:
>   self.gpudata = gpudata
>   assert base is not None  <----
> 
> What is GPUArray.base for, and if we really need it, what data is expected
>  there?  I can't find GPUArray.base being used anywhere in the PyCUDA code
>  base.

Same as numpy.base--its sole purpose is to establish lifetime dependencies.
Say you create an array A that's a view of another array B (a slice, say). 
Then you'd very much like B to not be destroyed before A.

HTH,
Andreas

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PyCUDA mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to