Open
Description
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:
using CuArrays
CuArrays.allowscalar(false)
N = 100
u_c = rand(N, 2);
u_d = CuArrays.CuArray(ones(N));
u_v = view(u_c, :, 1);
copyto!(u_d, u_v) #works
copyto!(u_v, u_d) #does not work
Environment details (please complete this section)
Details on Julia:
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Status `~/.julia/environments/v1.1/Project.toml`
[3a865a2d] CuArrays v1.2.1