You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Functions like map work on GPU arrays directly, but not on StructArrays-of-GPUArrays:
using Metal
A =StructArray(a=MtlArray(rand(Float32, 10^3)), b=MtlArray(rand(Int8, 10^3)))
map(exp, A.a) # worksmap(x ->exp(x.a), A) # throws "Scalar indexing is disallowed" because `map` falls back to iteration
Would be great to make it work! How do you think could be implemented?
I'm not very experienced with GPU arrays and their inner workings.
Functions like
map
work on GPU arrays directly, but not on StructArrays-of-GPUArrays:Would be great to make it work! How do you think could be implemented?
I'm not very experienced with GPU arrays and their inner workings.
Ref JuliaArrays/StructArrays.jl#300
The text was updated successfully, but these errors were encountered: