Skip to content

Stream triad example#3212

Open
bkmgit wants to merge 2 commits into
google:masterfrom
bkmgit:stream
Open

Stream triad example#3212
bkmgit wants to merge 2 commits into
google:masterfrom
bkmgit:stream

Conversation

@bkmgit

@bkmgit bkmgit commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@bkmgit
bkmgit force-pushed the stream branch 3 times, most recently from 407d1aa to 0e0a90e Compare July 12, 2026 07:08
@bkmgit bkmgit changed the title WIP: Stream triad example Stream triad example Jul 12, 2026
@bkmgit
bkmgit marked this pull request as ready for review July 12, 2026 07:11
@bkmgit

bkmgit commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

The code is bandwidth bound, so SIMD will not give a performance boost on most architectures. SIMD would likely be more energy efficient as fewer instructions are needed for long vectors. The compiler would likely optimize the scalar code.

@bkmgit
bkmgit force-pushed the stream branch 2 times, most recently from b96d7a1 to afbfe3f Compare July 12, 2026 15:29

@jan-wassenberg jan-wassenberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice example :)

Comment thread hwy/examples/stream_triad.cc Outdated
Comment thread hwy/examples/stream_triad.cc Outdated
Comment thread hwy/examples/stream_triad.cc Outdated
@bkmgit
bkmgit force-pushed the stream branch 7 times, most recently from 4241145 to 989690f Compare July 15, 2026 06:50

@jan-wassenberg jan-wassenberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :) One minor update:

Comment thread hwy/examples/stream_triad.cc
Comment thread hwy/examples/stream_triad.cc Outdated
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