CUDAMemoryLoad
This feature is not supported on the Wolfram Cloud.

CUDAMemoryLoad[list]
registers list into the CUDALink memory manager.

CUDAMemoryLoad[img]
registers img into the CUDALink memory manager.

更多信息更多信息

  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • Possible types for are:
  • IntegerRealComplex
    "Byte""Bit16""Integer"
    "Byte[2]""Bit16[2]""Integer32[2]"
    "Byte[3]""Bit16[3]""Integer32[3]"
    "Byte[4]""Bit16[4]""Integer32[4]"
    "UnsignedByte""UnsignedBit16""Float"
    "UnsignedByte[2]""UnsignedBit16[2]""Float[2]"
    "UnsignedByte[3]""UnsignedBit16[3]""Float[3]"
    "UnsignedByte[4]""UnsignedBit16[4]""Float[4]"
    "Double""Double[2]""Double[3]"
    "Double[4]"
  • The following options can be given:
  • "Device"$CUDADeviceCUDA device used in computation
    "TargetPrecision"Automaticprecision used in computation

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

基本范例  (1)基本范例  (1)

First, load the CUDALink application:

In[1]:=
Click for copyable input

This loads memory:

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

Information about memory can be retrieved using CUDAMemoryInformation:

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

Memory added must be freed with CUDAMemoryUnload:

In[4]:=
Click for copyable input