import numba.cuda as cuda @cuda.jit def f(a): a[0]=1 import numpy a=numpy.zeros(1) f[1,1](a) print(a)