Skip to content

Commit 5c03d54

Browse files
committed
Rename variable for correctness.
1 parent b62e851 commit 5c03d54

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/array.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ function Base.unsafe_wrap(::Type{Array}, arr::oneArray{T,N,oneL0.SharedBuffer})
492492
unsafe_wrap(Array, ptr, size(arr))
493493
end
494494

495+
495496
## resizing
496497

497498
"""

src/compiler/compilation.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ end
4040

4141
# cache of compilation caches, per device
4242
const _compiler_caches = Dict{ZeDevice, Dict{Any, Any}}()
43-
function compiler_cache(ctx::ZeDevice)
44-
cache = get(_compiler_caches, ctx, nothing)
43+
function compiler_cache(dev::ZeDevice)
44+
cache = get(_compiler_caches, dev, nothing)
4545
if cache === nothing
4646
cache = Dict{Any, Any}()
47-
_compiler_caches[ctx] = cache
47+
_compiler_caches[dev] = cache
4848
end
4949
return cache
5050
end

0 commit comments

Comments
 (0)