$CUDADevice
This feature is not supported on the Wolfram Cloud.

$CUDADevice
is the CUDA device used in computation.

DetailsDetails

  • The CUDALink package must be loaded using Needs["CUDALink`"].
  • Set to Automatic, the CUDA computations are performed on the fastest device.
  • Changes to the device performed after execution of a CUDALink function are ignored.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

First, load the CUDALink application:

In[1]:=
Click for copyable input

This sets the computation device to 1:

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

Subsequent computation using any of the CUDALink functions will use the $CUDADevice specified:

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