-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
796 Reduction Scoping #832
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #832 +/- ##
===========================================
+ Coverage 80.41% 80.50% +0.09%
===========================================
Files 347 353 +6
Lines 10933 11205 +272
===========================================
+ Hits 8792 9021 +229
- Misses 2141 2184 +43
|
vt::adt::SafeUnion<int64_t, char> y2; | ||
|
||
// This makes an assertion about alignment that will hold across these two | ||
// types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're concerned about alignment, you can (also) assert on alignof
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've got my comments. The code is generally OK.
dc2fa31
to
1e26dc2
Compare
1e26dc2
to
3969222
Compare
Clones added
============
- src/vt/utils/adt/union.h 2
Clones removed
==============
+ src/vt/vrt/collection/reducable/reducable.impl.h -4
See the complete overview on Codacy |
Fixes #796
Fixes #821
Rewrite machinery for scoping and stamping reductions.
This PR solves long-standing issues with collisions in asynchronous reductions. Create reducer instances with scoping for each instance and stamping reductions within a scope for identification across reductions in the same scope.
Note, this a breaking API change.
theCollective()->reduce<>(..)
is no longer allowed.You may access
theCollective()->global()->reduce(..)
but this not recommended.The new implementation is far more compact in bits sent with a reduction message by using SafeUnion. Probably 1/3 of the space required before.