$CUDADeviceCount


gives the number of CUDA devices on the system.

更多信息更多信息

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

基本范例 (1)基本范例 (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]=
New to Mathematica? Find your learning path »
Have a question? Ask support »