Skip to content

Commit b82fe68

Browse files
committed
Block after setup and cleanup in benchmarks
1 parent 0826562 commit b82fe68

File tree

6 files changed

+17
-0
lines changed

6 files changed

+17
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ type WithoutTransferBenchmark<'elem when 'elem : struct>(
113113
override this.GlobalSetup() =
114114
this.ReadMatrix()
115115
this.LoadMatrixToGPU()
116+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
116117

117118
[<IterationCleanup>]
118119
override this.IterationCleanup() =
119120
this.ClearResult()
121+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
120122

121123
[<GlobalCleanup>]
122124
override this.GlobalCleanup() =
@@ -180,6 +182,7 @@ type WithTransferBenchmark<'elem when 'elem : struct>(
180182
[<GlobalSetup>]
181183
override this.GlobalSetup() =
182184
this.ReadMatrix()
185+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
183186

184187
[<GlobalCleanup>]
185188
override this.GlobalCleanup() =
@@ -189,6 +192,7 @@ type WithTransferBenchmark<'elem when 'elem : struct>(
189192
override this.IterationCleanup() =
190193
this.ClearInputMatrix()
191194
this.ClearResult()
195+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
192196

193197
[<Benchmark>]
194198
override this.Benchmark() =

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,12 @@ type PageRankWithoutTransferBenchmarkFloat32() =
117117
this.Processor.PostAndReply(Msg.MsgNotifyMe)
118118
this.PrepareMatrix()
119119
this.ClearInputMatrix()
120+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
120121

121122
[<IterationCleanup>]
122123
override this.IterationCleanup() =
123124
this.ClearResult()
125+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
124126

125127
[<GlobalCleanup>]
126128
override this.GlobalCleanup() =

benchmarks/GraphBLAS-sharp.Benchmarks/Matrix/Map2/Map2.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ module WithTransfer =
251251
[<GlobalSetup>]
252252
override this.GlobalSetup() =
253253
this.ReadMatrices()
254+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
254255

255256
[<GlobalCleanup>]
256257
override this.GlobalCleanup() = ()
@@ -259,6 +260,7 @@ module WithTransfer =
259260
override this.IterationCleanup() =
260261
this.ClearInputMatrices()
261262
this.ClearResult()
263+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
262264

263265
[<Benchmark>]
264266
override this.Benchmark() =

benchmarks/GraphBLAS-sharp.Benchmarks/Matrix/SpGeMM/Expand.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ module WithoutTransfer =
115115
override this.GlobalSetup() =
116116
this.ReadMatrices()
117117
this.LoadMatricesToGPU()
118+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
118119

119120
[<Benchmark>]
120121
override this.Benchmark() =
@@ -124,6 +125,7 @@ module WithoutTransfer =
124125
[<IterationCleanup>]
125126
override this.IterationCleanup () =
126127
this.ClearResult()
128+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
127129

128130
[<GlobalCleanup>]
129131
override this.GlobalCleanup () =

benchmarks/GraphBLAS-sharp.Benchmarks/Matrix/SpGeMM/Masked.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ type MxmBenchmarksMultiplicationOnly<'elem when 'elem : struct>(
152152
this.ReadMatrices ()
153153
this.LoadMatricesToGPU ()
154154
this.ConvertSecondMatrixToCSC()
155+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
155156

156157
[<Benchmark>]
157158
override this.Benchmark () =
@@ -161,6 +162,7 @@ type MxmBenchmarksMultiplicationOnly<'elem when 'elem : struct>(
161162
[<IterationCleanup>]
162163
override this.IterationCleanup () =
163164
this.ClearResult()
165+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
164166

165167
[<GlobalCleanup>]
166168
override this.GlobalCleanup () =
@@ -182,6 +184,7 @@ type MxmBenchmarksWithTransposing<'elem when 'elem : struct>(
182184
override this.GlobalSetup() =
183185
this.ReadMatrices()
184186
this.LoadMatricesToGPU ()
187+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
185188

186189
[<Benchmark>]
187190
override this.Benchmark() =
@@ -194,6 +197,7 @@ type MxmBenchmarksWithTransposing<'elem when 'elem : struct>(
194197
override this.IterationCleanup() =
195198
this.ClearResult()
196199
this.ConvertSecondMatrixToCSR()
200+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
197201

198202
[<GlobalCleanup>]
199203
override this.GlobalCleanup() =

benchmarks/GraphBLAS-sharp.Benchmarks/Vector/Map2.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ module WithoutTransfer =
115115
override this.IterationCleanup() =
116116
this.ClearResult()
117117
this.ClearInputVectors()
118+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
118119

119120
[<GlobalCleanup>]
120121
override this.GlobalCleanup() = ()
@@ -159,6 +160,7 @@ module WithTransfer =
159160
[<IterationSetup>]
160161
override this.IterationSetup() =
161162
this.CreateVectors()
163+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
162164

163165
[<Benchmark>]
164166
override this.Benchmark () =
@@ -175,6 +177,7 @@ module WithTransfer =
175177
override this.IterationCleanup () =
176178
this.ClearInputVectors()
177179
this.ClearResult()
180+
this.Processor.PostAndReply(Msg.MsgNotifyMe)
178181

179182
[<GlobalCleanup>]
180183
override this.GlobalCleanup() = ()

0 commit comments

Comments
 (0)