CUDALink`
CUDALink`

CUDAMemoryCopyToHost

CUDAMemoryCopyToHost[mem]

force copies CUDAMemory from the GPU to the CPU.

更多信息和选项

范例

基本范例  (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":

This will perform an unnecessary copy from the device to the host:

The information is not changed:

Wolfram Research (2010),CUDAMemoryCopyToHost,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToHost.html.

文本

Wolfram Research (2010),CUDAMemoryCopyToHost,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToHost.html.

CMS

Wolfram 语言. 2010. "CUDAMemoryCopyToHost." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToHost.html.

APA

Wolfram 语言. (2010). CUDAMemoryCopyToHost. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToHost.html 年

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_cudamemorycopytohost, organization={Wolfram Research}, title={CUDAMemoryCopyToHost}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDAMemoryCopyToHost.html}, note=[Accessed: 05-November-2024 ]}