Skip to content

Commit 6c032a2

Browse files
committed
Fix toHost bench
1 parent bd67a41 commit 6c032a2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

benchmarks/GraphBLAS-sharp.Benchmarks/BenchmarksEWiseAdd.fs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ type Config() =
3636

3737
base.AddFilter(
3838
DisjunctionFilter(
39-
NameFilter(fun name -> name.Contains "COO") :> IFilter
39+
NameFilter(fun name -> name.Contains "COO") :> IFilter,
40+
NameFilter(fun name -> name.Contains "ToHost") :> IFilter
4041
)
4142
) |> ignore
4243

@@ -260,7 +261,9 @@ type ToHostBenchmarks4Float32() =
260261

261262
[<Benchmark>]
262263
member this.ToHostFloat32() =
264+
let (ClContext context) = this.OclContext
263265
resultCOO.ToHost()
266+
|> context.RunSync
264267

265268
static member InputMatricesProvider =
266269
let matricesFilenames =

0 commit comments

Comments
 (0)