|
SOLUTIONS
|
OPENCLLINK SYMBOL
OpenCLMemory
is a handle to memory registered with the OpenCLLink memory manager.
DetailsDetails
- The OpenCLLink application must be loaded using Needs["OpenCLLink`"].
is returned by OpenCLMemoryLoad or OpenCLMemoryAllocate.
can be queried using OpenCLMemoryInformation.
is retrieved using OpenCLMemoryGet.
is unloaded using OpenCLMemoryUnload.- Valid
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" "Float" "UnsignedByte[2]" "UnsignedBit16[2]" "Float[2]" "UnsignedByte[4]" "UnsignedBit16[4]" "Float[4]" "UnsignedByte[8]" "UnsignedBit16[8]" "Float[8]" "UnsignedByte[16]" "UnsignedBit16[16]" "Float[16]" "Double" "Double[2]" "Double[4]" "Double[8]" "Double[16]" 
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
First, load the OpenCLLink application:
| In[1]:= |
This registers the list ConstantArray[0, 10] with the OpenCLLink memory manager, returning an
handle:
| In[2]:= |
| Out[2]= |
This allocates memory and registers it with the OpenCLLink memory manager:
| In[3]:= |
| Out[3]= |
This returns information on the memory allocated:
| In[4]:= |
| Out[4]= | ![]() |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

