Skip to content

Commit ab4d3ac

Browse files
committed
refactor: Common.Merge
1 parent 850ca14 commit ab4d3ac

File tree

2 files changed

+3
-4
lines changed
  • src/GraphBLAS-sharp.Backend/Common
  • tests/GraphBLAS-sharp.Tests/Common

2 files changed

+3
-4
lines changed

src/GraphBLAS-sharp.Backend/Common/Merge.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module Merge =
5353
let beginIdx = beginIdxLocal
5454
let endIdx = endIdxLocal
5555
let firstLocalLength = endIdx - beginIdx
56+
5657
let mutable x = workGroupSize - firstLocalLength
5758

5859
if endIdx = firstSide then
@@ -68,7 +69,7 @@ module Merge =
6869
localIndices.[lid] <- firstValues.[beginIdx + lid]
6970

7071
if lid < secondLocalLength then
71-
localIndices.[firstLocalLength + lid] <- firstValues.[gid - beginIdx]
72+
localIndices.[firstLocalLength + lid] <- secondValues.[gid - beginIdx]
7273

7374
barrierLocal ()
7475

tests/GraphBLAS-sharp.Tests/Common/Merge.fs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ let context = Context.defaultContext.ClContext
1010

1111
let processor = Context.defaultContext.Queue
1212

13-
let config =
14-
{ Utils.defaultConfig with
15-
endSize = 10 }
13+
let config = { Utils.defaultConfig with endSize = 10000000 }
1614

1715
let makeTest isEqual testFun (leftArray: 'a []) (rightArray: 'a []) =
1816
if leftArray.Length > 0 && rightArray.Length > 0 then

0 commit comments

Comments
 (0)