Skip to content

Commit

Permalink
adapt SUITE loading to const binding changes (#327)
Browse files Browse the repository at this point in the history
* adapt SUITE loading to const binding changes

* Update src/BaseBenchmarks.jl

---------

Co-authored-by: Shuhei Kadowaki <[email protected]>
  • Loading branch information
adienes and aviatesk authored Jan 29, 2025
1 parent 8ea74c9 commit 7aaa4ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BaseBenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function load!(group::BenchmarkGroup, id::AbstractString; tune::Bool = true)
modsym = MODULES[id]
modpath = joinpath(dirname(@__FILE__), id, "$(modsym).jl")
Core.eval(BaseBenchmarks, :(include($modpath)))
modsuite = Core.eval(BaseBenchmarks, modsym).SUITE
mod = Core.eval(BaseBenchmarks, modsym)
modsuite = @invokelatest getglobal(mod, :SUITE)
group[id] = modsuite
if tune
results = BenchmarkTools.load(PARAMS_PATH)[1]
Expand Down

0 comments on commit 7aaa4ac

Please sign in to comment.