$CUDADeviceCount


gives the number of CUDA devices on the system.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (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 »