CUDALink`
CUDALink`

CUDAMemoryCopyToDevice

CUDAMemoryCopyToDevice[mem]

force copies CUDAMemory from the CPU to the GPU.

Details and Options

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

Wolfram Research (2010), CUDAMemoryCopyToDevice, Wolfram Language function, https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToDevice.html.

Text

Wolfram Research (2010), CUDAMemoryCopyToDevice, Wolfram Language function, https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToDevice.html.

CMS

Wolfram Language. 2010. "CUDAMemoryCopyToDevice." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToDevice.html.

APA

Wolfram Language. (2010). CUDAMemoryCopyToDevice. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToDevice.html

BibTeX

@misc{reference.wolfram_2024_cudamemorycopytodevice, author="Wolfram Research", title="{CUDAMemoryCopyToDevice}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToDevice.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_cudamemorycopytodevice, organization={Wolfram Research}, title={CUDAMemoryCopyToDevice}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToDevice.html}, note=[Accessed: 21-December-2024 ]}