Main Page
Modules
Data Structures
Related Pages
Device Management
cudaChooseDevice
cudaGetDevice
cudaGetDeviceCount
cudaGetDeviceProperties
cudaSetDevice
cudaSetDeviceFlags
cudaSetValidDevices
cudaError_t
cudaChooseDevice
(
int *
device
,
const struct
cudaDeviceProp
*
prop
)
Returns in
*device
the device which has properties that best match
*prop
.
Parameters:
device
- Device with best match
prop
- Desired device properties
Returns:
cudaSuccess
,
cudaErrorInvalidValue
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaGetDeviceCount
,
cudaGetDevice
,
cudaSetDevice
,
cudaGetDeviceProperties
Generated by Doxygen for NVIDIA CUDA Library