OpenCLLink`
OpenCLLink`

OpenCLMemoryUnload

OpenCLMemoryUnload[mem1,mem2,]

unloads OpenCLMemory from the OpenCLLink memory manager.

更多信息和选项更多信息
  • The OpenCLLink application must be loaded using Needs["OpenCLLink`"].
  • OpenCLMemory is returned by OpenCLMemoryLoad or OpenCLMemoryAllocate.
  • OpenCLMemoryUnload returns Null when successful.
  • 范例

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

    基本范例  (1)

    First, load the OpenCLLink application:

    In[1]:=
    Click for copyable input

    This registers the list ConstantArray[0,10] with the OpenCLLink memory manager, returning an OpenCLMemory handle:

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

    This unloads the memory registered:

    In[3]:=
    Click for copyable input

    Possible Issues  (1)

    参见

    OpenCLMemory  OpenCLMemoryLoad  OpenCLMemoryAllocate  OpenCLMemoryInformation

    教程