cuda.bindings._v2.driver.ctx_synchronize_v2#

cuda.bindings._v2.driver.ctx_synchronize_v2(intptr_t ctx)#

Block for the specified context’s tasks to complete.

Blocks until the specified context has completed all preceding requested tasks. If the specified context is the primary context, green contexts that have been created will also be synchronized. The API returns an error if one of the preceding tasks failed. If the context was created with the CU_CTX_SCHED_BLOCKING_SYNC flag, the CPU thread will block until the GPU context has finished its work. If the specified context is NULL, the API will operate on the current context.

Parameters:

ctx (intptr_t) – Context to synchronize.

See also

cuCtxSynchronize_v2