Hi,
I am trying to accelerate computation using GPU. I started with the textbook example
Needs["CUDALink`"]
ListLinePlot[
Thread[List[CUDAFoldList[Plus, 0, RandomReal[{-1, 1}, 500000]],
CUDAFoldList[Plus, 0, RandomReal[{-1, 1}, 500000]]]]]
This code should use GPU to accelerate the computation.
Then for comparison, I tried to generate similar result with
ListLinePlot[
Thread[List[FoldList[Plus, 0, RandomReal[{-1, 1}, 500000]],
FoldList[Plus, 0, RandomReal[{-1, 1}, 500000]]]]]
In both cases it took about 4 sec. to finish the computation i.e. there was no significant difference in time required to get the result. Why?