We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b014513 commit 3061589Copy full SHA for 3061589
examples/histogram.jl
@@ -87,9 +87,9 @@ end
87
linear_input = move(backend, linear_input)
88
all_two = move(backend, all_two)
89
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)
+ rand_histogram = KernelAbstractions.zeros(backend, eltype(rand_input), maximum(rand_input))
+ linear_histogram = KernelAbstractions.zeros(backend, eltype(linear_input), maximum(linear_input))
+ two_histogram = KernelAbstractions.zeros(backend, eltype(all_two), maximum(all_two))
93
94
histogram!(rand_histogram, rand_input)
95
histogram!(linear_histogram, linear_input)
0 commit comments