|
SOLUTIONS
|
CUDALINK SYMBOL
CUDAMemoryGet
CUDAMemoryGet[mem]
gets CUDAMemory into the CPU and Mathematica.
DetailsDetails
- The CUDALink application must be loaded using Needs["CUDALink`"].
- CUDAMemory is returned by CUDAMemoryLoad or CUDAMemoryAllocate.
ExamplesExamplesopen allclose all
Basic Examples (3)Basic Examples (3)
First, load the CUDALink application:
| In[1]:= |
This registers Range[10] with the CUDALink memory manager returning a handle to the memory:
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
Images can be loaded as CUDAMemory:
| In[1]:= |
| Out[1]= |
When CUDAMemory is retrieved, the original image is returned:
| In[2]:= |
| Out[2]= | ![]() |
Graphics objects can be loaded as CUDAMemory:
| In[1]:= |
| Out[1]= |
The Graphics object is rasterized when loaded:
| In[2]:= |
| Out[2]= | ![]() |
The head of the retrieved data is an Image:
| In[3]:= |
| Out[3]= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »



