Skip to content

Commit cd7476e

Browse files
committed
Format
1 parent c7e0852 commit cd7476e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/KernelAbstractions.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -814,13 +814,9 @@ include("macros.jl")
814814
###
815815

816816
function Scratchpad end
817-
function SharedMemory(t::Type{T}, dims::Val{Dims}, id::Val{Id}) where {T, Dims, Id}
818-
KernelIntrinsics.localmemory(t, dims, id)
819-
end
817+
SharedMemory(t::Type{T}, dims::Val{Dims}, id::Val{Id}) where {T, Dims, Id} = KernelIntrinsics.localmemory(t, dims, id)
820818

821-
function __synchronize()
822-
KernelIntrinsics.barrier()
823-
end
819+
__synchronize() = KernelIntrinsics.barrier()
824820

825821
@generated function __print(items...)
826822
str = ""

0 commit comments

Comments
 (0)