On Fri, 06 May 2011 11:00:08 +0200, Tomasz Rybak <[email protected]> wrote:
> Dnia 2011-04-24, nie o godzinie 17:50 +0200, Tomasz Rybak pisze:
> > Dnia 2011-04-24, nie o godzinie 01:22 -0400, Andreas Kloeckner pisze:
> > > On Sun, 17 Apr 2011 17:10:30 +0200, "=?UTF-8?B?VG9tYXN6IFJ5YmFr?=" 
> > > <[email protected]> wrote:
> > > > Dnia 2011-04-16 00:48 Andreas Kloeckner napisał(a):
> > > > 
> > > > >Hi Tomasz,
> > > > >
> > > > >any progress on the things below? Has maybe another email gone missing?
> > > > >I'd like to release PyCUDA 2011.1 soon.
> > > > 
> > > > 
> > > > I have send the patch to the mailing list on 2011-03-18 and 2011-03-24.
> > > > Please check the archives.
> > > 
> > > Weird. I'm really not sure what happened there--I could've sworn I never
> > > saw these emails.
> > > 
> > > In any case, I've merged your patch into the
> > > curand-wrapper-v2-from-tomasz branch, which I've also brought up to
> > > current master.
> > 
> > Thanks!
> > 
> > > 
> > > Looks like we're almost done here--only initialization is missing.
> > 
> > I hope to have it done by the end of the next week.
> 
> I have troubles with transferring data between C and Python.
> I want to:
> 1. call curandGetDirectionVectors32 which returns pointer
> to the 32 int32
> 2. transfer this data to the device memory
> 3. create GPUArray from it
> 4. call prepare() kernel which will pass appropriate
> direction vectors to the curand_init() kernel
> 
> I have tried two approaches (curand-hostptr.diff
> and curand-memcpy.diff). The former, when compiled,
> causes _curand module to misbehave - e.g. it get_curand_version()
> returns None instead of (3, 2, 0) or (0, 0, 0)
> The latter compiles but cuMemcpy call fails because of
> parameter type mismatch.
> 
> Can someone give me some direction how to transfer raw
> pointer from C to Python?

What's wrong with creating a numpy array for the data?

Andreas

Attachment: pgpTqsG3nLZsO.pgp
Description: PGP signature

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

Reply via email to