cuda.bindings._v2.driver.ctx_get_id#
- cuda.bindings._v2.driver.ctx_get_id(intptr_t ctx) unsigned long long#
Returns the unique Id associated with the context supplied.
Returns in
ctx_idthe unique Id which is associated with a given context. The Id is unique for the life of the program for this instance of CUDA. If context is supplied as NULL and there is one current, the Id of the current context is returned.- Parameters:
ctx (intptr_t) – Context for which to obtain the Id.
- Returns:
Pointer to store the Id of the context.
- Return type:
unsigned long long
See also
cuCtxGetId