此为 Mathematica 8 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

OpenCLMemoryGet

OpenCLMemoryGet[mem]
gets OpenCLMemory into the CPU and Mathematica.
  • The OpenCLLink application must be loaded using Needs.
First, load the OpenCLLink application:
This registers Range with the OpenCLLink memory manager returning a handle to the memory:
This retrieves the memory:
Images can be loaded as OpenCLMemory:
When OpenCLMemory is retrieved, the original image is returned:
Graphics objects can be loaded as OpenCLMemory:
The Graphics object is rasterized when loaded:
The head of the retrieved data is an Image:
First, load the OpenCLLink application:
In[1]:=
Click for copyable input
This registers Range with the OpenCLLink memory manager returning a handle to the memory:
In[2]:=
Click for copyable input
Out[2]=
This retrieves the memory:
In[3]:=
Click for copyable input
Out[3]=
 
Images can be loaded as OpenCLMemory:
In[1]:=
Click for copyable input
Out[1]=
When OpenCLMemory is retrieved, the original image is returned:
In[2]:=
Click for copyable input
Out[2]=
 
Graphics objects can be loaded as OpenCLMemory:
In[1]:=
Click for copyable input
Out[1]=
The Graphics object is rasterized when loaded:
In[2]:=
Click for copyable input
Out[2]=
The head of the retrieved data is an Image:
In[3]:=
Click for copyable input
Out[3]=