Skip to content

Commit c7edebb

Browse files
committed
Add TODO.
1 parent abfd847 commit c7edebb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/abstractarray.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ materialize(x::AbstractArray) = Array(x)
9393
materialize(x::GPUArray) = x
9494
materialize(x::Array) = x
9595

96+
# TODO: do we want to support `copyto(..., WrappedArray{GPUArray})`
97+
# if so (does not work due to lack of copy constructors):
98+
#for (W, ctor) in (:AT => (A,mut)->mut(A), Adapt.wrappers...)
99+
# @eval begin
100+
# materialize(X::$W) where {AT <: GPUArray} = AT(X)
101+
# end
102+
#end
103+
96104
for (D, S) in ((GPUArray, AbstractArray), (Array, GPUArray), (GPUArray, GPUArray))
97105
@eval begin
98106
function Base.copyto!(dest::$D{T, N}, rdest::NTuple{N, UnitRange},

0 commit comments

Comments
 (0)