@@ -9,7 +9,6 @@ open GraphBLAS.FSharp.IO
9
9
open GraphBLAS.FSharp .Benchmarks
10
10
open GraphBLAS.FSharp .Objects
11
11
open GraphBLAS.FSharp .Objects .ArraysExtensions
12
- open GraphBLAS.FSharp .Objects .MailboxProcessorExtensions
13
12
open GraphBLAS.FSharp .Backend .Quotes
14
13
15
14
[<AbstractClass>]
@@ -41,7 +40,7 @@ type Benchmarks<'elem when 'elem : struct>(
41
40
42
41
member this.Processor =
43
42
let p = ( fst this.OclContextInfo) .Queue
44
- p.Error.Add( fun e -> failwithf " %A " e)
43
+ // p.Error.Add(fun e -> failwithf "%A" e)
45
44
p
46
45
47
46
static member AvailableContexts = Utils.availableContexts
@@ -70,7 +69,7 @@ type Benchmarks<'elem when 'elem : struct>(
70
69
this.ResultLevels <- this.FunToBenchmark this.Processor matrix vertex
71
70
72
71
member this.ClearInputMatrix () =
73
- matrix.Dispose this.Processor
72
+ matrix.Dispose()
74
73
75
74
member this.ClearResult () =
76
75
match this.ResultLevels with
@@ -114,12 +113,12 @@ type WithoutTransferBenchmark<'elem when 'elem : struct>(
114
113
override this.GlobalSetup () =
115
114
this.ReadMatrix()
116
115
this.LoadMatrixToGPU()
117
- finish this.Processor
116
+ this.Processor.Synchronize ()
118
117
119
118
[<IterationCleanup>]
120
119
override this.IterationCleanup () =
121
120
this.ClearResult()
122
- finish this.Processor
121
+ this.Processor.Synchronize ()
123
122
124
123
[<GlobalCleanup>]
125
124
override this.GlobalCleanup () =
@@ -128,7 +127,7 @@ type WithoutTransferBenchmark<'elem when 'elem : struct>(
128
127
[<Benchmark>]
129
128
override this.Benchmark () =
130
129
this.BFS()
131
- this.Processor.PostAndReply Msg.MsgNotifyMe
130
+ this.Processor.Synchronize ()
132
131
133
132
type BFSWithoutTransferBenchmarkBool () =
134
133
@@ -183,7 +182,7 @@ type WithTransferBenchmark<'elem when 'elem : struct>(
183
182
[<GlobalSetup>]
184
183
override this.GlobalSetup () =
185
184
this.ReadMatrix()
186
- finish this.Processor
185
+ this.Processor.Synchronize ()
187
186
188
187
[<GlobalCleanup>]
189
188
override this.GlobalCleanup () =
@@ -193,7 +192,7 @@ type WithTransferBenchmark<'elem when 'elem : struct>(
193
192
override this.IterationCleanup () =
194
193
this.ClearInputMatrix()
195
194
this.ClearResult()
196
- finish this.Processor
195
+ this.Processor.Synchronize ()
197
196
198
197
[<Benchmark>]
199
198
override this.Benchmark () =
@@ -202,7 +201,7 @@ type WithTransferBenchmark<'elem when 'elem : struct>(
202
201
match this.ResultLevels with
203
202
| ClVector.Dense result ->
204
203
result.ToHost this.Processor |> ignore
205
- this.Processor.PostAndReply Msg.MsgNotifyMe
204
+ this.Processor.Synchronize ()
206
205
| _ -> failwith " Impossible"
207
206
208
207
type BFSWithTransferBenchmarkBool () =
0 commit comments