jonniedie / ComponentArrays.jl

Arrays with arbitrarily nested named components.
MIT License
287 stars 34 forks source link

`recursive_eltype` not defined when constructing ComponentArray on the GPU #209

Closed ldeso closed 1 year ago

ldeso commented 1 year ago
julia> c = ComponentArray(a=CUDA.ones(1))
ERROR: UndefVarError: `recursive_eltype` not defined
Stacktrace:
 [1] ComponentArray(nt::NamedTuple{(:a,), Tuple{CuArray{Float32, 1, CUDA.Mem.DeviceBuffer}}})
   @ ComponentArraysGPUArraysExt ~/.julia/dev/ComponentArrays/ext/ComponentArraysGPUArraysExt.jl:77
 [2] #ComponentArray#21
   @ ~/.julia/dev/ComponentArrays/src/componentarray.jl:66 [inlined]
 [3] top-level scope
   @ REPL[3]:1

Fixed by #210.