[PyCUDA] casting arguments to memset to unsigned int ?
Andreas Klöckner
lists at informa.tiker.net
Wed Jul 1 08:00:35 PDT 2009
On Dienstag 30 Juni 2009, Michael Rule wrote:
> Ok, fixed that ( needed to use "uint" not "uint32". Numpy basic types
> don't seem to be anywhere near the surface of Google and are hard to
> find ). I now have another related question :
>
> the documentation for the pycuda prepare function states
> "setting up the argument types as arg_types. arg_types is expected to
> be an iterable containing type characters understood by the struct
> module or numpy.dtype objects."
>
> Since I am still baffled by numpy datatypes ( which definitely don't
> seem to include pointers), how do I tell CUDA that "this is a pointer
> to a float" and "this is a pointer to an integer" using this function
> ?
numpy.intp = pointer-sized integer. There's no checking of the pointed-to type
as yet.
Would you mind adding FAQ items for these two?
http://wiki.tiker.net/PyCuda/FrequentlyAskedQuestions
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20090701/832e0b2b/attachment-0001.pgp>
More information about the PyCUDA
mailing list