OpenCLLink`
OpenCLLink`
OpenCLMemory
OpenCLMemory[args,…]
is a handle to memory registered with the OpenCLLink memory manager.
更多信息和选项
- 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:
-
Integer Real Complex "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]"
范例
基本范例 (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:
Wolfram Research (2010),OpenCLMemory,Wolfram 语言函数,https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemory.html.
文本
Wolfram Research (2010),OpenCLMemory,Wolfram 语言函数,https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemory.html.
CMS
Wolfram 语言. 2010. "OpenCLMemory." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemory.html.
APA
Wolfram 语言. (2010). OpenCLMemory. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemory.html 年