I want to do parallel reduction, but inside my kernel with data in shared memory. Is this possible with thrust library ? Something like
int sum = thrust::reduce(myIntArray, myIntArray+numberOfItems, (int) 0, thrust::max_element<int>());
But this doesn't work inside kernel. Is it possible? Thank you.