[PyCUDA] PyCUDA Digest, Vol 12, Issue 28
Andreas Klöckner
lists at informa.tiker.net
Tue Jun 30 05:47:54 PDT 2009
Hi Vince,
On Montag 29 Juni 2009, Vince Fulco wrote:
> Dear Andreas-
>
> Thank you for the detailed response.
>
> At the risk of belabouring, a portion of the Marsenne Twister code
> contains two kernel/functions for the Box Muller transformation calcs.
> One is defined __device__ and the other which draws on calcs of the
> first is a __global__. Would it be possible to re-code the first as a
> __global__ with appropriate changes internally as well and then wrap
> the two with Pycuda or am I missing something more obvious? This may
> not be an efficient use of the device but could be faster than
> porting. Of course there is a larger portion of C which accesses the
> host and would need to be dealt with as well.
I must admit I'm not really familiar with Nvidia's Monte Carlo example. As
long as the function you're trying to recode doesn't pass pointers to shared
memory, what you suggest should be possible. I can't quite say whether it's
going to be efficient, that depends on a rather large number of factors.
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/20090630/c432fc43/attachment-0001.pgp>
More information about the PyCUDA
mailing list