CUDPP Max scan Determine maximum value of array

Hi all,

For an application I’m writing I want to determine the max of an array by using CUDPP. After taking a close look at the examples that come with CUDPP 1.0a I found some things.

I think I know how to setup the configuration but what I dont get is that when you have an input array and an output array for the max scan.

I think the max scan returns only a single value and not an array of values or am I wrong here?

Thanks,
Jordy

you are looking for reduction, not scan I believe. I have some example code at work, I think, but it is basically changing the reduction example to do sdata[tid] = fmaxf(sdata[tid], sdata[tid+x]); instead of sdata[tid] += sdata[tid+x];