CUDAMemoryGet

CUDAMemoryGet[mem]
gets CUDAMemory into the CPU and Mathematica.

更多信息更多信息

范例范例打开所有单元关闭所有单元

基本范例 (3)基本范例 (3)

First, load the CUDALink application:

In[1]:=
Click for copyable input

This registers Range[10] with the CUDALink 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 CUDAMemory:

In[1]:=
Click for copyable input
Out[1]=

When CUDAMemory is retrieved, the original image is returned:

In[2]:=
Click for copyable input
Out[2]=

Graphics objects can be loaded as CUDAMemory:

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]=
New to Mathematica? Find your learning path »
Have a question? Ask support »