CUDALink`
CUDALink`

CUDAMemoryCopyToDevice

CUDAMemoryCopyToDevice[mem]

force copies CUDAMemory from the CPU to the GPU.

Details

Examples

Basic Examples  (1)

First, load the CUDALink application:

This loads a Range[10] list into CUDALink:

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":