Optimal Method for Maximum Value Reduction in Large 2D Grids

Hello CUDA community,

I’m working on a project that requires finding the maximum value in 2D grids with potentially hundreds of thousands or millions of elements. I’m trying to determine the most time-efficient approach for this reduction operation.

I’m considering three options:

  1. Binary tree reduction with custom implementation
  2. Custom reduction with another algorithm
  3. Using an acceleration library like Thrust

Has anyone benchmarked these different approaches for large-scale maximum value reductions? I’d appreciate insights on which method typically performs best for grids in the 100,000+ element range, particularly for maximum value reduction.

Thanks for your help!