is the CUDA device used in computation.
更多信息和选项更多信息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.
First, load the CUDALink application:
This sets the computation device to 1:
Subsequent computation using any of the CUDALink functions will use the $CUDADevice specified: