I am new to CuPy but am somewhat familiar with pyCuda. Lets say in pyCuda I have a pointer to device memory, called dptr, and a numpy array, called myarray, and I want to move this array to the device I would call something along the lines of the following:
... import numpy as np import pycuda.driver as cuda ... nelems = 512 myarray = np.zeros(nelms) ... cuda.memcpy_htod(dptr, myarray) ...
Can I use a cupy complex64 array in place of the numpy array myarray in the above example such that I can call memcpy_htod ?
Thanks for any help.