OpenCLLink`
OpenCLLink`

OpenCLMemoryCopyToDevice

OpenCLMemoryCopyToDevice[mem]

force copies OpenCLMemory from the CPU to the GPU.

Details and Options

Examples

Basic Examples  (1)

First, load the OpenCLLink application:

This loads the Range[10] 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":

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_openclmemorycopytodevice, author="Wolfram Research", title="{OpenCLMemoryCopyToDevice}", year="2010", howpublished="\url{https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemoryCopyToDevice.html}", note=[Accessed: 23-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_openclmemorycopytodevice, organization={Wolfram Research}, title={OpenCLMemoryCopyToDevice}, year={2010}, url={https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemoryCopyToDevice.html}, note=[Accessed: 23-November-2024 ]}