I would like to copy a numpy array on an existing, pre-allocated, gpu array.
I've seen that cupy offers the functions copy and copyto, however the former does not allow to specify the destination array, while the latter works only between device arrays.
Is there any way to achieve copying a numpy array to the device making usage of pre-allocated memory?
cupy.cuda.runtime.memcpy()