Host-to-Device Data Copy
The sample code is as follows:
import acl # ...... # devPtr indicates the pointer to the destination memory address on the device, and devSize indicates the size of the destination memory. # hostPtr indicates the pointer to the source memory address on the host, and count indicates the size of the source memory. acl.rt.memcpy(devPtr, devSize, hostPtr, count, ACL_MEMCPY_HOST_TO_DEVICE) # ......