File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/GraphBLAS-sharp.Backend/Algorithms Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,10 @@ module internal MSBFS =
183
183
let findIntersection =
184
184
Intersect.findKeysIntersection clContext workGroupSize
185
185
186
+ let copyIndices = ClArray.copyTo clContext workGroupSize
187
+
188
+ // let copyMatrix = Matrix.copy clContext workGroupSize
189
+
186
190
fun ( queue : MailboxProcessor < Msg >) allocationMode ( front : ClMatrix.COO < _ >) ( parents : ClMatrix.COO < _ >) ->
187
191
188
192
// Find intersection of levels and front indices.
@@ -197,14 +201,12 @@ module internal MSBFS =
197
201
198
202
match newFront with
199
203
| Some f ->
200
- let resultFront = { f with Values = f.Columns }
201
-
202
204
// Update parents
203
205
let newParents = mergeDisjoint queue parents f
204
206
205
- f.Values.Free queue
207
+ copyIndices queue f.Columns f.Values
206
208
207
- newParents, Some resultFront
209
+ newParents, Some f
208
210
209
211
| _ -> parents, None
210
212
You can’t perform that action at this time.
0 commit comments