Test transform_reduce with thrust::seq in __device__ code.