Skip to main content

select_strategy

Function select_strategy 

Source
pub fn select_strategy(ctx: &ReductionContext) -> SumStrategy
Expand description

Determine the appropriate summation strategy for the given context.

§Rules (in priority order)

  1. ExecMode::Parallel → Binned
  2. @nogc context → Binned
  3. ReproMode::Strict → Binned
  4. Linalg operation → Binned
  5. Otherwise → Kahan