Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/performance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end

# Local memory variants

@kernel function lmem_copy_kernel!(
@kernel unsafe_indices = true function lmem_copy_kernel!(
output, @Const(input),
::Val{BANK} = Val(1),
) where {BANK}
Expand All @@ -46,7 +46,7 @@ end
@inbounds output[I, J] = tile[i, j]
end

@kernel function lmem_transpose_kernel!(
@kernel unsafe_indices = true function lmem_transpose_kernel!(
output, @Const(input),
::Val{BANK} = Val(1),
) where {BANK}
Expand Down Expand Up @@ -77,7 +77,7 @@ end

# Local Memory + process multiple elements per lane

@kernel function coalesced_copy_kernel!(
@kernel unsafe_indices = true function coalesced_copy_kernel!(
output, @Const(input),
::Val{BANK} = Val(1),
) where {BANK}
Expand Down Expand Up @@ -105,7 +105,7 @@ end
end
end

@kernel function coalesced_transpose_kernel!(
@kernel unsafe_indices = true function coalesced_transpose_kernel!(
output, @Const(input),
::Val{BANK} = Val(1),
) where {BANK}
Expand Down
2 changes: 1 addition & 1 deletion examples/performant_matmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include(joinpath(dirname(pathof(KernelAbstractions)), "../examples/utils.jl")) #
# Metal sometimes supports fewer.
const TILE_DIM = 16

@kernel function coalesced_matmul_kernel!(
@kernel unsafe_indices = true function coalesced_matmul_kernel!(
output, @Const(input1), @Const(input2), N, R, M,
::Val{BANK} = Val(1),
) where {BANK}
Expand Down
Loading