Skip to content

Commit 6c03b08

Browse files
committed
Formatting
1 parent 002de2d commit 6c03b08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/KernelAbstractions.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,8 @@ allocates an array using unified memory if the backend supports it. Use
533533
!!! note
534534
Backend implementations **must** implement `allocate(::NewBackend, T, dims::Tuple)`
535535
"""
536-
allocate(backend::Backend, T::Type, dims...; unified=false) = allocate(backend, T, dims; unified)
537-
allocate(backend::Backend, T::Type, dims::Tuple; unified=false) = throw(MethodError(allocate, (backend, T, dims)))
536+
allocate(backend::Backend, T::Type, dims...; unified = false) = allocate(backend, T, dims; unified)
537+
allocate(backend::Backend, T::Type, dims::Tuple; unified = false) = throw(MethodError(allocate, (backend, T, dims)))
538538

539539
"""
540540
zeros(::Backend, Type, dims...; unified=false)::AbstractArray
@@ -543,7 +543,7 @@ Allocate a storage array appropriate for the computational backend filled with z
543543
`unified` allocates an array using unified memory if the backend supports it.
544544
"""
545545
zeros(backend::Backend, T::Type, dims...; kwargs...) = zeros(backend, T, dims; kwargs...)
546-
function zeros(backend::Backend, ::Type{T}, dims::Tuple; unified=false) where {T}
546+
function zeros(backend::Backend, ::Type{T}, dims::Tuple; unified = false) where {T}
547547
data = allocate(backend, T, dims...; unified)
548548
fill!(data, zero(T))
549549
return data
@@ -556,7 +556,7 @@ Allocate a storage array appropriate for the computational backend filled with o
556556
`unified` allocates an array using unified memory if the backend supports it.
557557
"""
558558
ones(backend::Backend, T::Type, dims...; kwargs...) = ones(backend, T, dims; kwargs...)
559-
function ones(backend::Backend, ::Type{T}, dims::Tuple; unified=false) where {T}
559+
function ones(backend::Backend, ::Type{T}, dims::Tuple; unified = false) where {T}
560560
data = allocate(backend, T, dims; unified)
561561
fill!(data, one(T))
562562
return data

0 commit comments

Comments
 (0)