Mojo function
lane_group_reduce
lane_group_reduce[shuffle: fn[DType, Int](val: SIMD[$0, $1], offset: SIMD[uint32, 1]) -> SIMD[$0, $1], func: fn[DType, Int](SIMD[$0, $1], SIMD[$0, $1]) capturing -> SIMD[$0, $1], val_type: DType, simd_width: Int, nthreads: Int](val: SIMD[val_type, simd_width]) -> SIMD[val_type, simd_width]
Takes in an input function to computes warp shuffle based reduction operation.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!