GPUArrays.jl icon indicating copy to clipboard operation
GPUArrays.jl copied to clipboard

Sum zero-arrays

Open mcabbott opened this issue 4 years ago • 2 comments
trafficstars

Closes #362

~~Does not handle keywords, note that dims is an error on normal Arrays, but init is respected so perhaps should be here too:~~

julia> sum(fill(3), init=99)
102

julia> sum(fill(3), dims=1)
ERROR: BoundsError: attempt to access Tuple{} at index [1]

CI failure for GPU seems to be printing code?

mcabbott avatar Jun 22 '21 15:06 mcabbott

Good to go?

maleadt avatar Jul 22 '21 12:07 maleadt

Sadly not -- status when last I looked was that my "better way" seemed not to be called at all, and I wasn't sure why.

mcabbott avatar Jul 28 '21 12:07 mcabbott