cuda.bindings._v2.driver.device_get#

cuda.bindings._v2.driver.device_get(int ordinal) → int#

Returns a handle to a compute device.

Returns in *device a device handle given an ordinal in the range [0, device_get_count()-1].

Parameters:

ordinal (int) – Device number to get handle for.

Returns:

Returned device handle.

Return type:

int

See also

cuDeviceGet