On Sat, Jan 21, 2012 at 11:29 AM, Stanley Seibert <s...@mtrr.org> wrote:
> I just replied to you over at the CUDA forum: > > > http://forums.nvidia.com/index.php?showtopic=221189&st=0&gopid=1358769&#entry1358769 > > The size of Vec is not 12 bytes, but 16 bytes. > pycuda.characterize.sizeof() will let you compute this automatically. > > (Is there any documentation of the pycuda.characterize module? I can't > find any...) > Thanks. I'll try your suggestion > > On Jan 21, 2012, at 11:24 AM, Yifei Li wrote: > > > > > > > On Fri, Jan 20, 2012 at 9:58 PM, Anthony LaTorre <tlator...@gmail.com> > wrote: > > add the padding field! > > I know this will work. But without the padding field, the same program > written in C does not have any issue. > > > > or you can just flip the order, i.e. > > > > struct Vec > > { > > float *data; > > int len; > > } > > > > I tried this trick already. > > > > Any further ideas? > > _______________________________________________ > > PyCUDA mailing list > > PyCUDA@tiker.net > > http://lists.tiker.net/listinfo/pycuda > >
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda