[PyCUDA] casting arguments to memset to unsigned int ?
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
Would you mind adding FAQ items for these two?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the PyCUDA