Skip to content

Commit cadb104

Browse files
committed
Pass accurasy to PR
1 parent 6f6c629 commit cadb104

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

benchmarks/GraphBLAS-sharp.Benchmarks/Algorithms/PageRank.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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.00000001f
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

src/GraphBLAS-sharp.Backend/Algorithms/PageRank.fs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace GraphBLAS.FSharp.Backend.Algorithms
1+
namespace GraphBLAS.FSharp.Backend.Algorithms
22

33
open GraphBLAS.FSharp
44
open GraphBLAS.FSharp.Backend
@@ -13,7 +13,6 @@ open GraphBLAS.FSharp.Objects.ClCellExtensions
1313

1414
module internal PageRank =
1515
let alpha = 0.85f
16-
let accuracy = 0.00000001f
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

0 commit comments

Comments
 (0)