OpenCLLink`
OpenCLLink`

OpenCLMemory

OpenCLMemory[args,]

is a handle to memory registered with the OpenCLLink memory manager.

Details and Options

  • The OpenCLLink application must be loaded using Needs["OpenCLLink`"].
  • OpenCLMemory is returned by OpenCLMemoryLoad or OpenCLMemoryAllocate.
  • OpenCLMemory can be queried using OpenCLMemoryInformation.
  • OpenCLMemory is retrieved using OpenCLMemoryGet.
  • OpenCLMemory is unloaded using OpenCLMemoryUnload.
  • Valid OpenCLMemory types are:
  • IntegerRealComplex
    "Byte""Bit16""Integer"
    "Byte[2]""Bit16[2]""Integer32[2]"
    "Byte[4]""Bit16[4]""Integer32[4]"
    "Byte[8]""Bit16[8]""Integer32[8]"
    "Byte[16]""Bit16[16]""Integer32[16]"
    "UnsignedByte""UnsignedBit16""UnsignedInteger"
    "UnsignedByte[2]""UnsignedBit16[2]""UnsignedInteger[2]"
    "UnsignedByte[4]""UnsignedBit16[4]""UnsignedInteger[4]"
    "UnsignedByte[8]""UnsignedBit16[8]""UnsignedInteger[8]"
    "UnsignedByte[16]""UnsignedBit16[16]""UnsignedInteger[16]"
    "Double""Float""Integer64"
    "Double[2]""Float[2]""Integer64[2]"
    "Double[4]""Float[4]""Integer64[4]"
    "Double[8]""Float[8]""Integer64[8]"
    "Double[16]""Float[16]""Integer64[16]"

Examples

Basic Examples  (1)

First, load the OpenCLLink application:

This registers the list ConstantArray[0,10] with the OpenCLLink memory manager, returning an OpenCLMemory handle:

This allocates memory and registers it with the OpenCLLink memory manager:

This returns information on the memory allocated:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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