Skip to content

Commit eaaff4c

Browse files
committed
Formatting
1 parent 32558fe commit eaaff4c

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
@@ -541,8 +541,8 @@ allocates an array using unified memory if the backend supports it. Use
541541
!!! note
542542
Backend implementations **must** implement `allocate(::NewBackend, T, dims::Tuple)`
543543
"""
544-
allocate(backend::Backend, T::Type, dims...; unified=false) = allocate(backend, T, dims; unified)
545-
allocate(backend::Backend, T::Type, dims::Tuple; unified=false) = throw(MethodError(allocate, (backend, T, dims)))
544+
allocate(backend::Backend, T::Type, dims...; unified = false) = allocate(backend, T, dims; unified)
545+
allocate(backend::Backend, T::Type, dims::Tuple; unified = false) = throw(MethodError(allocate, (backend, T, dims)))
546546

547547
"""
548548
zeros(::Backend, Type, dims...; unified=false)::AbstractArray
@@ -551,7 +551,7 @@ Allocate a storage array appropriate for the computational backend filled with z
551551
`unified` allocates an array using unified memory if the backend supports it.
552552
"""
553553
zeros(backend::Backend, T::Type, dims...; kwargs...) = zeros(backend, T, dims; kwargs...)
554-
function zeros(backend::Backend, ::Type{T}, dims::Tuple; unified=false) where {T}
554+
function zeros(backend::Backend, ::Type{T}, dims::Tuple; unified = false) where {T}
555555
data = allocate(backend, T, dims...; unified)
556556
fill!(data, zero(T))
557557
return data
@@ -564,7 +564,7 @@ Allocate a storage array appropriate for the computational backend filled with o
564564
`unified` allocates an array using unified memory if the backend supports it.
565565
"""
566566
ones(backend::Backend, T::Type, dims...; kwargs...) = ones(backend, T, dims; kwargs...)
567-
function ones(backend::Backend, ::Type{T}, dims::Tuple; unified=false) where {T}
567+
function ones(backend::Backend, ::Type{T}, dims::Tuple; unified = false) where {T}
568568
data = allocate(backend, T, dims; unified)
569569
fill!(data, one(T))
570570
return data

0 commit comments

Comments
 (0)