Device Management
[CUDA Runtime API]


Functions

cudaError_t cudaChooseDevice (int *device, const struct cudaDeviceProp *prop)
 Select compute-device which best matches criteria.
cudaError_t cudaGetDevice (int *device)
 Returns which device is currently being used.
cudaError_t cudaGetDeviceCount (int *count)
 Returns the number of compute-capable devices.
cudaError_t cudaGetDeviceProperties (struct cudaDeviceProp *prop, int device)
 Returns information about the compute-device.
cudaError_t cudaSetDevice (int device)
 Set device to be used for GPU executions.
cudaError_t cudaSetDeviceFlags (unsigned int flags)
 Sets flags to be used for device executions.
cudaError_t cudaSetValidDevices (int *device_arr, int len)
 Set a list of devices that can be used for CUDA.

Detailed Description

This section describes the device management functions of the CUDA runtime application programming interface.

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA