Sam Preston <[email protected]> writes:

> Hi all,
>
> I would like to use pycuda to write a few kernels to interoperate with a
> larger cuda/python library I'm already using.  I can get the raw device
> memory address as a python int, and from searching past threads on the
> mailing list it sounds like I should be able to pass this as an argument to
> my kernel.  However everything I try seems to generate an error -- I'm
> currently doing something like this:
>
> .
> .
> .
> myfunc = mod.get_function("myfunc")
> # myob.get() returns memory address as int
> addr = np.uint32(myob.get())
> myfunc(addr, block=block, grid=grid)

Can you post a full reproducing example? Just passing a (sized) integer
(to a kernel function) *should* work. For the rest of the PyCUDA API,
you should probably use just a plain Python int.

Andreas

Attachment: pgpLv73CLWQxr.pgp
Description: PGP signature

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

Reply via email to