Skip to content

Commit 49944bf

Browse files
committed
Changed bitonic sort tests
1 parent a5f93d8 commit 49944bf

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

tests/GraphBLAS-sharp.Tests/BackendCommonTests/BitonicSortTests.fs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ open GraphBLAS.FSharp.Tests.Utils
1111

1212
let logger = Log.create "BitonicSort.Tests"
1313

14-
let context = Utils.defaultContext.ClContext
14+
let testContext =
15+
let contexts = "" |> avaliableContexts |> Seq.toList
16+
contexts.[0]
17+
18+
let context = testContext.ClContext
1519

1620
let makeTest (q: MailboxProcessor<_>) sort (filter: 'a -> bool) (array: ('n * 'n * 'a) []) =
1721
if array.Length > 0 then
@@ -74,7 +78,7 @@ let tests =
7478
let config = defaultConfig
7579

7680
let wgSize = 128
77-
let q = defaultContext.Queue
81+
let q = testContext.Queue
7882
q.Error.Add(fun e -> failwithf "%A" e)
7983

8084
[ testFixtures<int> config wgSize q (fun _ -> true)

tests/GraphBLAS-sharp.Tests/Program.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let allTests =
1212
testList
1313
"All tests"
1414
[ Backend.PrefixSum.tests
15-
//Backend.BitonicSort.tests
15+
Backend.BitonicSort.tests
1616
Backend.Convert.tests
1717
Backend.RemoveDuplicates.tests
1818
Backend.Copy.tests

0 commit comments

Comments
 (0)