Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7958

Re: CUDATotal

From dan jack <dan.spectrix@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: CUDATotal
Date 2012-01-17 12:03 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jf3o2h$rju$1@smc.vnet.net> (permalink)
References <jf13m9$5mm$1@smc.vnet.net>

Show all headers | View raw


On 16 Gen, 13:03, dan jack <dan.spect...@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

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

CUDATotal dan jack <dan.spectrix@gmail.com> - 2012-01-16 12:03 +0000
  Re: CUDATotal dan jack <dan.spectrix@gmail.com> - 2012-01-17 12:03 +0000

csiph-web