Skip to content

Update cpu_work_per_thread calculation to better match cpu-benchmark#152

Merged
henricasanova merged 1 commit intomainfrom
wfbench_cpuwork
May 6, 2026
Merged

Update cpu_work_per_thread calculation to better match cpu-benchmark#152
henricasanova merged 1 commit intomainfrom
wfbench_cpuwork

Conversation

@quantumsteve
Copy link
Copy Markdown
Collaborator

cpu-benchmark calculated 1000000 points per unit of cpu_work. In contrast, stress-ng's input is in units of 1 point.

I thought stress-ng batched the calculation in units of 16384 points, but that doesn't appear to be the case.
https://github.com/ColinIanKing/stress-ng/blob/c6952a9ececa120975f84f3ca969bd3c258c77ef/stress-monte-carlo.c#L333

Signed-off-by: Steven Hahn <hahnse@ornl.gov>
@quantumsteve quantumsteve requested a review from henricasanova May 6, 2026 18:08
@henricasanova
Copy link
Copy Markdown
Contributor

I concur. The stress-ng code doesn't really batch the calculation. I mean, it's odd. I am not sure why they have this grouping iterations into groups of 16384, but based on the stress-ng code you highlight, the total number of iterations is samples, not samples * 16384...

Copy link
Copy Markdown
Contributor

@henricasanova henricasanova left a comment

Choose a reason for hiding this comment

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

looks reasonable to me.

@henricasanova henricasanova merged commit fcc530f into main May 6, 2026
5 checks passed
@quantumsteve quantumsteve deleted the wfbench_cpuwork branch May 6, 2026 20:58
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