def run.pick
import bend-parallel@0.1.0.0/scan.bend as Scanimport Base
207# Pass 2 by run1 from 2^12 sums up, else on one lane: on the GPU we
208# measured, the nested scan's forks cost more than one lane's walk below
209# that.
210def run.pick(lo: Bool, +inc: Bool, +d: Nat, +e: Nat, r: Two) -> Array<U32> & U32:
211 match lo:
212 case True{}:
213 run0.sums(inc, d, e, r)
214 case False{}:
215 run1.sums(inc, d, e, r)