Commit 258220d 1 parent 374ccfc commit 258220d Copy full SHA for 258220d
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,11 @@ void ReduceCol::reduceHandler() {
82
82
proxy.allreduce <&ReduceCol::reduceTarget>(val);
83
83
}
84
84
85
+ int number_of_elements = 32 ;
86
+
85
87
void ReduceCol::reduceTarget (int value) {
86
88
fmt::print (" collection reduce value={}\n " , value);
87
- assert (32 * 100 == value);
89
+ assert (number_of_elements * 100 == value);
88
90
89
91
}
90
92
@@ -99,8 +101,8 @@ static inline void collectionReduce() {
99
101
*/
100
102
101
103
if (this_node == 0 ) {
102
- // Range of 32 elements for the collection
103
- auto range = vt::Index1D (32 );
104
+ // Range of `number_of_elements` elements for the collection
105
+ auto range = vt::Index1D (number_of_elements );
104
106
105
107
// Construct the collection in a rooted manner. By default, the elements
106
108
// will be block mapped to the nodes
You can’t perform that action at this time.
0 commit comments