File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,14 @@ def write(
158
158
data = self .__group [column ][rank_range [0 ] : rank_range [1 ]][()]
159
159
data = data [mask ]
160
160
data_group [column ][rank_start :rank_end ] = data
161
-
162
- tree = self .__tree .apply_mask (mask )
161
+
162
+ masks = self .__comm .gather (mask , root = 0 )
163
+ if rank == 0 :
164
+ mask = np .concatenate (masks )
165
+ tree = self .__tree .apply_mask (mask )
166
+ else :
167
+ tree = None
168
+ tree = self .__comm .bcast (tree , root = 0 )
163
169
tree .write (group )
164
170
165
171
self .__comm .Barrier ()
@@ -186,6 +192,7 @@ def get_data(
186
192
data = data [mask ]
187
193
col = Column (data , name = column )
188
194
output [column ] = builder .build (col )
195
+ self .__comm .Barrier ()
189
196
190
197
if len (output ) == 1 :
191
198
return next (iter (output .values ()))
You can’t perform that action at this time.
0 commit comments