Skip to content

Add kahan_sum_volatile#1983

Merged
MrBurmark merged 2 commits intodevelopfrom
feature/burmark1/kahaon_sum_volatile
Jan 28, 2026
Merged

Add kahan_sum_volatile#1983
MrBurmark merged 2 commits intodevelopfrom
feature/burmark1/kahaon_sum_volatile

Conversation

@MrBurmark
Copy link
Member

Summary

Default kahan_sum to not use volatile so the compiler can optimize, and add kahan_sum_volatile. This lets you get an optimized kahan sum and have the option to use a workaround for when fast-math allows the compensated sum to be optimized out.

@MrBurmark MrBurmark requested review from a team and rhornung67 January 27, 2026 22:17
@MrBurmark MrBurmark enabled auto-merge January 27, 2026 23:16
@MrBurmark MrBurmark merged commit c6f4b0b into develop Jan 28, 2026
21 checks passed
@MrBurmark MrBurmark deleted the feature/burmark1/kahaon_sum_volatile branch January 28, 2026 17:37
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