force copies OpenCLMemory from the CPU to the GPU.
更多信息和选项更多信息The OpenCLLink application must be loaded using Needs["OpenCLLink`"].OpenCLMemory is returned by OpenCLMemoryLoad or OpenCLMemoryAllocate.
First, load the OpenCLLink application:
This loads the Range list into OpenCLLink:
This gives information about the returned memory. Notice how the "DeviceStatus" is "Uninitialized":
This forces a copy from the host memory (CPU) to the device memory (GPU):
This gives information about the returned memory. Notice how both "HostStatus" and "DeviceStatus" are "Synchronized":