File tree Expand file tree Collapse file tree
benchmarks/GraphBLAS-sharp.Benchmarks/Algorithms
src/GraphBLAS-sharp.Backend/Algorithms Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ type Benchmarks(
2626 let mutable matrixPrepared = Unchecked.defaultof< ClMatrix< float32>>
2727 let mutable matrixHost = Unchecked.defaultof<_>
2828
29+ let accuracy = 0.00000001 f
30+
2931 member val Result = Unchecked.defaultof< ClVector< float32>> with get, set
3032
3133 [<ParamsSource( " AvailableContexts" ) >]
@@ -65,7 +67,7 @@ type Benchmarks(
6567 | Some x -> x
6668
6769 member this.PageRank () =
68- this.Result <- this.FunToBenchmark this.Processor matrixPrepared
70+ this.Result <- this.FunToBenchmark this.Processor matrixPrepared accuracy
6971
7072 member this.ClearInputMatrix () =
7173 matrix.Dispose this.Processor
Original file line number Diff line number Diff line change 1- namespace GraphBLAS.FSharp.Backend.Algorithms
1+ namespace GraphBLAS.FSharp.Backend.Algorithms
22
33open GraphBLAS.FSharp
44open GraphBLAS.FSharp .Backend
@@ -13,7 +13,6 @@ open GraphBLAS.FSharp.Objects.ClCellExtensions
1313
1414module internal PageRank =
1515 let alpha = 0.85 f
16- let accuracy = 0.00000001 f
1716
1817 let countOutDegree ( clContext : ClContext ) workGroupSize =
1918
@@ -159,7 +158,7 @@ module internal PageRank =
159158 let create =
160159 GraphBLAS.FSharp.Vector.create clContext workGroupSize
161160
162- fun ( queue : MailboxProcessor < Msg >) ( matrix : ClMatrix < float32 >) ->
161+ fun ( queue : MailboxProcessor < Msg >) ( matrix : ClMatrix < float32 >) accuracy ->
163162
164163 let vertexCount = matrix.RowCount
165164
You can’t perform that action at this time.
0 commit comments