Skip to content

Commit f0c8daf

Browse files
committed
Added parameters to @perftest
1 parent 254e6d2 commit f0c8daf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/auxiliar.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ using Pkg
264264

265265
function install_deps()
266266
Pkg.add("BenchmarkTools")
267-
Pkg.add("GFlops")
267+
Pkg.add("CountFlops")
268268
Pkg.add("HDF5")
269269
Pkg.add("STREAMBenchmark")
270270
Pkg.add("Suppressor")

src/prefix.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function perftestprefix(ctx :: Context)::Expr
66
using BenchmarkTools;
77
$(
88
if roofline.autoflops
9-
quote using GFlops; end
9+
quote using CountFlops; end
1010
else
1111
quote begin end end
1212
end

src/rules.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ function perftestToBenchmark!(input_expr::Expr, context::Context)
246246
$(if suppress_output
247247
quote
248248
@suppress begin
249-
l[$name] = @benchmark ($parsed_target);
249+
l[$name] = @benchmark($(prop...), ($parsed_target));
250250
export_tree[$name][:autoflop] = $(
251251
if roofline.autoflops
252-
quote GFlops.flop(@count_ops ($parsed_target)) end
252+
quote CountFlops.flop(@count_ops ($parsed_target)) end
253253
else
254254
quote 0 end
255255
end
@@ -258,10 +258,10 @@ function perftestToBenchmark!(input_expr::Expr, context::Context)
258258
end
259259
else
260260
quote
261-
l[$name] = @benchmark samples=5 evals=1 ($parsed_target);
261+
l[$name] = @benchmark($(prop...), ($parsed_target));
262262
export_tree[$name][:autoflop] = $(
263263
if roofline.autoflops
264-
quote GFlops.flop(@count_ops ($parsed_target)) end
264+
quote CountFlops.flop(@count_ops ($parsed_target)) end
265265
else
266266
quote 0 end
267267
end

0 commit comments

Comments
 (0)