CUDALink`
CUDALink`

CUDAMemory

CUDAMemory[args]

is a handle to memory loaded using CUDAMemoryLoad or CUDAMemoryAllocate.

更多信息和选项

  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • CUDAMemory is returned by CUDAMemoryLoad or CUDAMemoryAllocate.
  • CUDAMemory can be unloaded using CUDAMemoryUnload.
  • Possible types for CUDAMemory are:
  • IntegerRealComplex
    "Byte""Bit16""Integer32"
    "Byte[2]""Bit16[2]""Integer32[2]"
    "Byte[3]""Bit16[3]""Integer32[3]"
    "Byte[4]""Bit16[4]""Integer32[4]"
    "UnsignedByte""UnsignedBit16""UnsignedInteger"
    "UnsignedByte[2]""UnsignedBit16[2]""UnsignedInteger[2]"
    "UnsignedByte[3]""UnsignedBit16[3]""UnsignedInteger[3]"
    "UnsignedByte[4]""UnsignedBit16[4]""UnsignedInteger[4]"
    "Double""Float""Integer64"
    "Double[2]""Float[2]""Integer64[2]"
    "Double[3]""Float[3]""Integer64[3]"
    "Double[4]""Float[4]""Integer64[4]"

范例

基本范例  (1)

First, load the CUDALink application:

This loads a Wolfram Language list into CUDA memory:

This finds information about the state of memory:

This unloads the memory:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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