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
5 changes: 4 additions & 1 deletion test/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ end
shared = (oneAPI.zefunction_link, oneAPI.launch_kernel, oneL0.set_argument_value!,
oneAPI.KernelLinker(Nothing, Tuple{}, (;)), oneAPI.with_managed_locks,
oneAPI.with_ownership)
# only count compiled specializations: Julia 1.15 also creates method instances,
# without code, for the argument types of calls to `@nospecialize` methods
nspecializations() =
sum(f -> sum(m -> length(collect(Base.specializations(m))), methods(f)), shared)
sum(f -> sum(m -> count(mi -> isdefined(mi, :cache), Base.specializations(m)),
methods(f)), shared)
before = nspecializations()
for T in (Int32, Int16, UInt8)
b = oneArray(zeros(T, 1))
Expand Down
Loading