CUDALink`
CUDALink`
$CUDADevice
$CUDADevice
is the CUDA device used in computation.
Details and Options
- 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.
Examples
Basic Examples (1)Summary of the most common use cases
First, load the CUDALink application:
In[1]:=1

✖
https://wolfram.com/xid/04h86q1vm2mvefs3vg2s6tjo3y-9h8a50
This sets the computation device to 1:
In[2]:=2

✖
https://wolfram.com/xid/04h86q1vm2mvefs3vg2s6tjo3y-gm9boi
Out[2]=2

Subsequent computation using any of the CUDALink functions will use the $CUDADevice specified:
In[3]:=3

✖
https://wolfram.com/xid/04h86q1vm2mvefs3vg2s6tjo3y-d7ocuc
Out[3]=3

Wolfram Research (2010), $CUDADevice, Wolfram Language function, https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html.
✖
Wolfram Research (2010), $CUDADevice, Wolfram Language function, https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html.
Text
Wolfram Research (2010), $CUDADevice, Wolfram Language function, https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html.
✖
Wolfram Research (2010), $CUDADevice, Wolfram Language function, https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html.
CMS
Wolfram Language. 2010. "$CUDADevice." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html.
✖
Wolfram Language. 2010. "$CUDADevice." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html.
APA
Wolfram Language. (2010). $CUDADevice. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html
✖
Wolfram Language. (2010). $CUDADevice. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html
BibTeX
✖
@misc{reference.wolfram_2024_$cudadevice, author="Wolfram Research", title="{$CUDADevice}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html}", note=[Accessed: 11-July-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2024_$cudadevice, organization={Wolfram Research}, title={$CUDADevice}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html}, note=[Accessed: 11-July-2025
]}