Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/compiler/compilation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ const _toolchain = Ref{Any}()
const _compiler_configs = Dict{UInt, oneAPICompilerConfig}()
const compiler_config_lock = ReentrantLock()
function compiler_config(dev; kwargs...)
h = hash(dev.driver, hash(dev, hash(kwargs)))
# (as a `NamedTuple`: hashing the `Pairs` boxes each value, on every launch)
h = hash(dev.driver, hash(dev, hash(values(kwargs))))
Base.@lock compiler_config_lock begin
get!(_compiler_configs, h) do
_compiler_config(dev; kwargs...)
Expand Down
Loading