-
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
copyto!() between cpu and gpu with subarrays #491
Comments
This is not supported, you can only have GPU arrays participate in a broadcast. So no CPU array, let alone a CPU view.
This is on purpose, too. We currently only support copying from
And introducing a Lines 148 to 164 in 62ae0c3
DenseCuArray already has significantly regressed precompilation and load times).
TLDR:
|
Thank you for the information and background. Is there any way then to copy from a slice of an array on the CPU to pre-allocated memory on the GPU? |
You can always |
Is there a way to copy from GPU into a CPU view? |
Copying a view from the CPU to existing memory on the GPU produces a scalar index error. Copy with the same way CPU-to-CPU and GPU-to-GPU still works.
If I try to do the copy with a broadcast
I get
The text was updated successfully, but these errors were encountered: