Skip to content

Commit 23c3f4f

Browse files
committed
Treat storage like the other kwargs
1 parent 0cbdbca commit 23c3f4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pool.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ The storage kwarg controls where the buffer is stored. Possible values are:
5151
Note that `Private` buffers can't be directly accessed from the CPU, therefore you cannot
5252
use this option if you pass a ptr to initialize the memory.
5353
"""
54-
function alloc(dev::Union{MTLDevice,MTLHeap}, sz::Integer, args...; storage, kwargs...)
54+
function alloc(dev::Union{MTLDevice,MTLHeap}, sz::Integer, args...; kwargs...)
5555
@signpost_event log=log_array() "Allocate" "Size=$(Base.format_bytes(sz))"
5656

5757
time = Base.@elapsed begin
58-
buf = @autoreleasepool MTLBuffer(dev, sz, args...; storage, kwargs...)
58+
buf = @autoreleasepool MTLBuffer(dev, sz, args...; kwargs...)
5959
end
6060

6161
Base.@atomic alloc_stats.alloc_count + 1

0 commit comments

Comments
 (0)