@@ -9,7 +9,6 @@ open GraphBLAS.FSharp.IO
99open GraphBLAS.FSharp .Benchmarks
1010open GraphBLAS.FSharp .Objects
1111open GraphBLAS.FSharp .Objects .ArraysExtensions
12- open GraphBLAS.FSharp .Objects .MailboxProcessorExtensions
1312open GraphBLAS.FSharp .Backend .Quotes
1413
1514[<AbstractClass>]
@@ -41,7 +40,7 @@ type Benchmarks<'elem when 'elem : struct>(
4140
4241 member this.Processor =
4342 let p = ( fst this.OclContextInfo) .Queue
44- p.Error.Add( fun e -> failwithf " %A " e)
43+ // p.Error.Add(fun e -> failwithf "%A" e)
4544 p
4645
4746 static member AvailableContexts = Utils.availableContexts
@@ -114,12 +113,12 @@ type WithoutTransferBenchmark<'elem when 'elem : struct>(
114113 override this.GlobalSetup () =
115114 this.ReadMatrix()
116115 this.LoadMatrixToGPU()
117- finish this.Processor
116+ this.Processor.Synchronize ()
118117
119118 [<IterationCleanup>]
120119 override this.IterationCleanup () =
121120 this.ClearResult()
122- finish this.Processor
121+ this.Processor.Synchronize ()
123122
124123 [<GlobalCleanup>]
125124 override this.GlobalCleanup () =
@@ -128,7 +127,7 @@ type WithoutTransferBenchmark<'elem when 'elem : struct>(
128127 [<Benchmark>]
129128 override this.Benchmark () =
130129 this.BFS()
131- this.Processor.PostAndReply Msg.MsgNotifyMe
130+ this.Processor.Synchronize ()
132131
133132type BFSWithoutTransferBenchmarkBool () =
134133
@@ -183,7 +182,7 @@ type WithTransferBenchmark<'elem when 'elem : struct>(
183182 [<GlobalSetup>]
184183 override this.GlobalSetup () =
185184 this.ReadMatrix()
186- finish this.Processor
185+ this.Processor.Synchronize ()
187186
188187 [<GlobalCleanup>]
189188 override this.GlobalCleanup () =
@@ -193,7 +192,7 @@ type WithTransferBenchmark<'elem when 'elem : struct>(
193192 override this.IterationCleanup () =
194193 this.ClearInputMatrix()
195194 this.ClearResult()
196- finish this.Processor
195+ this.Processor.Synchronize ()
197196
198197 [<Benchmark>]
199198 override this.Benchmark () =
@@ -202,7 +201,7 @@ type WithTransferBenchmark<'elem when 'elem : struct>(
202201 match this.ResultLevels with
203202 | ClVector.Dense result ->
204203 result.ToHost this.Processor |> ignore
205- this.Processor.PostAndReply Msg.MsgNotifyMe
204+ this.Processor.Synchronize ()
206205 | _ -> failwith " Impossible"
207206
208207type BFSWithTransferBenchmarkBool () =
0 commit comments