Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7885 > unrolled thread
| Started by | dan jack <dan.spectrix@gmail.com> |
|---|---|
| First post | 2012-01-16 12:03 +0000 |
| Last post | 2012-01-17 12:03 +0000 |
| Articles | 2 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | dan jack <dan.spectrix@gmail.com> |
|---|---|
| Date | 2012-01-16 12:03 +0000 |
| Subject | CUDATotal |
| Message-ID | <jf13m9$5mm$1@smc.vnet.net> |
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
[toc] | [next] | [standalone]
| From | dan jack <dan.spectrix@gmail.com> |
|---|---|
| Date | 2012-01-17 12:03 +0000 |
| Message-ID | <jf3o2h$rju$1@smc.vnet.net> |
| In reply to | #7885 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web