cuda.bindings._v2.driver.green_ctx_destroy#
- cuda.bindings._v2.driver.green_ctx_destroy(intptr_t h_ctx)#
Destroys a green context.
Destroys the green context, releasing the primary context of the device that this green context was created for. Any resources provisioned for this green context (that were initially available via the resource descriptor) are released as well. The API does not destroy streams created via
cuGreenCtxStreamCreate,cuStreamCreate, orcuStreamCreateWithPriority. Users are expected to destroy these streams explicitly usingcuStreamDestroyto avoid resource leaks. Once the green context is destroyed, any subsequent API calls involving these streams will returnCUDA_ERROR_STREAM_DETACHEDwith the exception of the following APIs:.cuStreamDestroy.
Additionally, the API will invalidate all active captures on these streams.
- Parameters:
h_ctx (intptr_t) – Green context to be destroyed.
See also
cuGreenCtxDestroy