def the_work():
    dtype = np.dtype(np.intp)
    darr = handle.open_array(cuda.current_context(), shape=(handle.size // dtype.itemsize), dtype=dtype)
    arr = darr.copy_to_host()
    handle.close()
    return arr
def the_work():
    dtype = np.dtype(np.intp)
    darr = handle.open_array(cuda.current_context(), shape=(handle.size // dtype.itemsize), dtype=dtype)
    arr = darr.copy_to_host()
    handle.close()
    return arr