Scalar getindex is disallowed

Try defining the array as Float64 not Int i.e.

x = CuArray(-3.0:3)

at least it makes exp.(x) work.