Hi Gerald,

On Fri, 11 Jun 2010 14:35:03 -0400, gerald wrong <psillymathh...@gmail.com> 
wrote:
> Sorry for the delay, we found a workaround and proceeded past this problem,
> but have since decided to revisit this error.  Below is the error and the
> relavent bit of code we are using.  Our workaround (commented out) is to
> manually pass as an 'int'.

I'm afraid there isn't really a way around the explicit cast, at least
for now. The documentation [1] says that memcpy_dtoh only takes int or
DeviceAllocation objects. If you have Boost.Python code that you are
compiling, you can mimic what PyCUDA does for DeviceAllocation. It is
also possible to have PyCUDA attempt a __long__ cast wherever it takes a
device pointer--do you think it's imperative that this should be done?

Andreas

[1]
http://documen.tician.de/pycuda/driver.html#pycuda.driver.memcpy_dtoh

Attachment: pgpFIjdoKTgcH.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to