cuda.bindings._v2.driver.green_ctx_get_id#

cuda.bindings._v2.driver.green_ctx_get_id(intptr_t green_ctx) → unsigned long long#

Returns the unique Id associated with the green context supplied.

Returns in green_ctxId the unique Id which is associated with a given green context. The Id is unique for the life of the program for this instance of CUDA. If green context is supplied as NULL and the current context is set to a green context, the Id of the current green context is returned.

Parameters:

green_ctx (intptr_t) – Green context for which to obtain the Id.

Returns:

Pointer to store the Id of the green context.

Return type:

unsigned long long

See also

cuGreenCtxGetId