changed to HostCuda memory works