Skip to content

Conversation

@jayshah1819
Copy link

@jayshah1819 jayshah1819 commented Oct 20, 2025

Changes

  • Add standalone reduce example (reduce_example.mjs and .html)
  • Add performance testing for reduce (reduceperf.mjs and .html)

Features

  • Minimal working reduce example with validation
  • Performance plots for bandwidth and runtime
  • UI controls for datatype (u32/i32/f32), binop (add/max/min), input sizes, and trials

Part of documentation : For each primitive (reduce/scan/sort) we need:

  • Standalone example
  • Performance testing with plots
  • M3 screenshots
  • Algorithm descriptions

@jowens
Copy link
Collaborator

jowens commented Oct 23, 2025

Question: Is it beneficial for us to have a separate standalone reduce example when it's going to be 95% the same code as the standalone scan example? I think the only differences will be picking reduce not scan as a primitive (of course) and allocating a different-sized output array.

I'm thinking about the long-term maintenance aspects here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants