Description Usage Arguments References See Also
Sets a list of devices for CUDA execution in priority order using
device_arr
. The parameter len
specifies the number of elements in the
list. CUDA will try devices from the list sequentially until it finds one
that works. If this function is not called, or if it is called with a len
of 0, then CUDA will go back to its default behavior of trying devices
sequentially from a default list containing all of the available CUDA
devices in the system. If a specified device ID in the list does not exist,
this function will return cudaErrorInvalidDevice
. If len
is not 0 and
device_arr
is NULL or if len
exceeds the number of devices in
the system, then cudaErrorInvalidValue
is returned.
1 | cudaSetValidDevices(device_arr, len)
|
device_arr |
List of devices to try |
len |
Number of devices in specified list |
http://docs.nvidia.com/cuda/cuda-driver-api/index.html
cudaGetDeviceCount
cudaSetDevice
cudaGetDeviceProperties
cudaSetDeviceFlags
cudaChooseDevice
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.