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