$CUDADevice
is the CUDA device used in computation.
$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)
First, load the CUDALink application:
Needs["CUDALink`"]This sets the computation device to 1:
$CUDADevice = 1Subsequent computation using any of the CUDALink functions will use the $CUDADevice specified:
CUDAImageConvolve[[image], {{-1, -2, 3}}]See Also
Tech Notes
Related Guides
-
▪
- CUDALink
Text
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.
APA
Wolfram Language. (2010). $CUDADevice. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html
BibTeX
@misc{reference.wolfram_2026_$cudadevice, author="Wolfram Research", title="{$CUDADevice}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_$cudadevice, organization={Wolfram Research}, title={$CUDADevice}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/$CUDADevice.html}, note=[Accessed: 13-June-2026]}