Skip to content

Commit 3061589

Browse files
committed
Fix
1 parent b014513 commit 3061589

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/histogram.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ end
8787
linear_input = move(backend, linear_input)
8888
all_two = move(backend, all_two)
8989

90-
rand_histogram = KernelAbstractions.zeros(backend, eltype(rand_input), 128)
91-
linear_histogram = KernelAbstractions.zeros(backend, eltype(linear_input), 1024)
92-
two_histogram = KernelAbstractions.zeros(backend, eltype(all_two), 2)
90+
rand_histogram = KernelAbstractions.zeros(backend, eltype(rand_input), maximum(rand_input))
91+
linear_histogram = KernelAbstractions.zeros(backend, eltype(linear_input), maximum(linear_input))
92+
two_histogram = KernelAbstractions.zeros(backend, eltype(all_two), maximum(all_two))
9393

9494
histogram!(rand_histogram, rand_input)
9595
histogram!(linear_histogram, linear_input)

0 commit comments

Comments
 (0)