Re: CUDATotal
- To: mathgroup at smc.vnet.net
- Subject: [mg124381] Re: CUDATotal
- From: dan jack <dan.spectrix at gmail.com>
- Date: Tue, 17 Jan 2012 07:02:10 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <jf13m9$5mm$1@smc.vnet.net>
On 16 Gen, 13:03, dan jack <dan.spect... at gmail.com> wrote: > Hello everyone, > I have a buffer allocated in GPU memory: > > buffer = CUDAMemoryAllocate["Double", 500]; > > then I do some operations with a function, then I take the buffer back > and compute the total of that array: > > v = CUDAMemoryGet[buffer]; > Total[v] > > but the result I obtain with > CUDATotal[buffer] > > is different... > why? > > thank you all I found the problem: it is a mistake in my function definition (integer instead of double) that mess up with the buffer, returning wrong calculations... thank you