Skip to content

Commit 8510dfe

Browse files
committed
Format
1 parent da98ac8 commit 8510dfe

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

examples/histogram.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function create_histogram(input)
1313
end
1414

1515
# This a 1D histogram kernel where the histogramming happens on static shmem
16-
function histogram_kernel!(histogram_output, input, ::Val{gs}) where gs
16+
function histogram_kernel!(histogram_output, input, ::Val{gs}) where {gs}
1717
gid = KI.get_group_id().x
1818
lid = KI.get_local_id().x
1919

@@ -58,7 +58,7 @@ end
5858
function histogram!(histogram_output, input, groupsize = 256)
5959
backend = get_backend(histogram_output)
6060
# Need static block size
61-
KI.@kernel backend workgroupsize=groupsize numworkgroups=cld(length(input), groupsize) histogram_kernel!(histogram_output, input, Val(groupsize))
61+
KI.@kernel backend workgroupsize = groupsize numworkgroups = cld(length(input), groupsize) histogram_kernel!(histogram_output, input, Val(groupsize))
6262
return
6363
end
6464

examples/performant_matmul.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ B = rand!(allocate(backend, Float32, R, M))
8181
C = KernelAbstractions.zeros(backend, Float32, N, M)
8282

8383
workgroupsize=(TILE_DIM, TILE_DIM)
84-
numworkgroups=(cld(size(C,1), TILE_DIM), cld(size(C,2), TILE_DIM))
84+
numworkgroups=(cld(size(C, 1), TILE_DIM), cld(size(C, 2), TILE_DIM))
8585

8686
KI.@kernel backend workgroupsize numworkgroups coalesced_matmul_kernel!(C, A, B, N, R, M, Val(TILE_DIM))
8787
KernelAbstractions.synchronize(backend)

src/intrinsics.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ end
159159
function _print end
160160

161161

162-
163162
"""
164163
Kernel{Backend, Kern}
165164

0 commit comments

Comments
 (0)