CUDALink`
CUDALink`

$CUDADeviceCount

$CUDADeviceCount

gives the number of CUDA devices on the system.

更多信息和选项更多信息
  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • $CUDADeviceCount is equivalent to Length[CUDAInformation[]].
  • 范例

    基本范例  (1)

    First, load the CUDALink application:

    In[1]:=
    Click for copyable input

    This gets the number of devices on the system:

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

    参见

    CUDAQ  CUDAInformation

    教程