cuda.bindings._v2.driver.ctx_get_device_v2#
- cuda.bindings._v2.driver.ctx_get_device_v2(intptr_t ctx) int#
Returns the device handle for the specified context.
Returns in
*devicethe handle of the specified context’s device. If the specified context is NULL, the API will return the current context’s device.- Parameters:
ctx (intptr_t) – Context for which to obtain the device.
- Returns:
Returned device handle for the specified context.
- Return type:
See also
cuCtxGetDevice_v2