1- module GraphBLAS.FSharp.Tests.Backend.Common.Choose
1+ module GraphBLAS.FSharp.Tests.Backend.Common.ClArray. Choose
22
33open GraphBLAS.FSharp .Backend .Common
44open Expecto
@@ -17,12 +17,15 @@ let makeTest<'a, 'b> testContext choose mapFun isEqual (array: 'a []) =
1717 let context = testContext.ClContext
1818 let q = testContext.Queue
1919
20- let clArray = context.CreateClArrayWithSpecificAllocationMode( DeviceOnly, array)
20+ let clArray =
21+ context.CreateClArrayWithSpecificAllocationMode( DeviceOnly, array)
2122
2223 let ( clResult : ClArray < 'b >) = choose q HostInterop clArray
2324
2425 let hostResult = Array.zeroCreate clResult.Length
25- q.PostAndReply( fun ch -> Msg.CreateToHostMsg( clResult, hostResult, ch)) |> ignore
26+
27+ q.PostAndReply( fun ch -> Msg.CreateToHostMsg( clResult, hostResult, ch))
28+ |> ignore
2629
2730 let expectedResult = Array.choose mapFun array
2831
@@ -32,7 +35,8 @@ let makeTest<'a, 'b> testContext choose mapFun isEqual (array: 'a []) =
3235let createTest < 'a , 'b > testContext mapFun mapFunQ isEqual =
3336 let context = testContext.ClContext
3437
35- let choose = ClArray.choose context workGroupSize mapFunQ
38+ let choose =
39+ ClArray.choose context workGroupSize mapFunQ
3640
3741 makeTest< 'a, 'b> testContext choose mapFun isEqual
3842 |> testPropertyWithConfig config $" Correctness on %A {typeof<'a>} -> %A {typeof<'b>}"
@@ -45,8 +49,9 @@ let testFixtures testContext =
4549 createTest< bool option, bool> testContext id Map.id (=)
4650
4751 if Utils.isFloat64Available device then
48- createTest< float option, float> testContext id Map.id Utils.floatIsEqual
52+ createTest< float option, float> testContext id Map.id Utils.floatIsEqual
4953
5054 createTest< float32 option, float32> testContext id Map.id Utils.float32IsEqual ]
5155
52- let tests = TestCases.gpuTests " ClArray.choose id tests" testFixtures
56+ let tests =
57+ TestCases.gpuTests " ClArray.choose id tests" testFixtures
0 commit comments