1fde842703
When OCL ROCr backend performs CL_MEM_COPY_HOST_PTR it may attempt to have access to amd::Memory object it's currently creating, but it's not ready yet. The logic creates a temporary dummy object to perform a copy transfer. The new change will make sure runtime skips allocation of the same device::Memory object second time. Change-Id: I14c6a00a3941fdcaa6aea299e9f096e4c3f5cadf