Suppress __host__ __device__ warnings in equal's implementation.
Use wrapped_function instead while testing reduce_intervals.