Mean or sum total of array values

Is there any way of calculating the mean value or sum total of all the elements in an array in global device memory. I’m currently using a very slow loop ala CPU.

Cheers

Iain

See the reduction sum example in the SDK. Or use CUDPP or Thrust.

Excellent. Thanks! :rolleyes: