-
Notifications
You must be signed in to change notification settings - Fork 81
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
copyto! does not support CPU SubArrays #422
Comments
I can see why avoiding scalar indexing for |
The problem is that we don't want to generalize our copy routines to support all kinds of CPU arrays, because doing so introduces a whole bunch of ambiguities (we tried in the past, #284), while we also don't just want to duplicate the copy routines in GPUArrays ( GPUArrays.jl/src/host/abstractarray.jl Lines 43 to 214 in 2b7dbeb
|
I completely agree about not wanting to support all kinds of CPU arrays, but IMHO memory contiguous views seem like an important enough subset of CPU arrays to be worthy of support. The use case where I first encountered this limitation was where I wanted to have B (where B >= 2) MxN matrices on the CPU so that when one is being transferred to the GPU the other(s) can still continue to be populated on the CPU side. I first implemented this as a single MxNxB array on the CPU and made MxN views of each slice along the B dimension. But I soon discovered that A more problematic use case is where the GPU produces MxN parts of a larger MxBN output array. I would like to be able to use It seems like there must be some way to have a |
Hello, do you have any news about this issue? I think that it would be very useful for a lot of applications. |
Nobody seems to be working on this, so no there have been no updates. |
Describe the bug
Copyto! does not work for subarray when scalar get index is disallowed.
To Reproduce
The Minimal Working Example (MWE) for this bug:
Environment details (please complete this section)
Details on Julia:
The text was updated successfully, but these errors were encountered: