Adding copyto for non-contiguous matrices and vectors#1778
Adding copyto for non-contiguous matrices and vectors#1778evelyne-ringoot wants to merge 22 commits into
Conversation
|
Woah, that's a lot of code... Can you explain your use case? Also, why don't the existing methods in GPUArrays work for you? |
|
Linking #1829 which is one of the use cases I get the following scalar indexing error: Possibly https://github.com/JuliaGPU/GPUArrays.jl/blob/4bb112c55c581e51e21d07a7df2dc2df7a8ca20e/src/host/abstractarray.jl#L51-L81 cannot handle non-contiguous memory and https://github.com/JuliaGPU/GPUArrays.jl/blob/4bb112c55c581e51e21d07a7df2dc2df7a8ca20e/src/host/abstractarray.jl#L151-L214 does not handle a mix of Subarrays on GPU and CPU? Perhaps this could also be resolved by changing line 179 in the latter from 'AbstractGPUArray' to 'Union{SubArray{<:Any, <:Any, <:AbstractGPUArray}, AbstractGPUArray}', but this might increase compilation time? Might also need to include Adjoints and Transponse in the union, to be determined. |
5d585c4 to
c850163
Compare
No description provided.