-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding copyto for non-contiguous matrices and vectors #1778
base: master
Are you sure you want to change the base?
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. |
No description provided.