-
-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
x = CUDA.zeros(5)
y = VectorOfArray([x,x,x])
y[:,:]
The last line produces the following warning:
┌ Warning: Performing scalar indexing on task Task (runnable) @0x00007efcf315c010. Invocation of getindex resulted in scalar indexing of a GPU array. This is typically caused by calling an iterating
│ implementation of a method. Such implementations do not execute on the GPU, but very slowly on the CPU, and therefore are only permitted from the REPL for prototyping purposes. If you did intend to
│ index this array, annotate the caller with @allowscalar.
└ @ GPUArrays /home/anaconda/.julia/packages/GPUArrays/gkF6S/src/host/indexing.jl:56
5×3 Matrix{Float32}:
0.0 0.0 0.0
0.0 0.0 0.0
0.0 0.0 0.0
0.0 0.0 0.0
0.0 0.0 0.0
Metadata
Metadata
Assignees
Labels
No labels