cuda.bindings._v2.driver.checkpoint_operation_complete#
- cuda.bindings._v2.driver.checkpoint_operation_complete(intptr_t handle)#
Complete a custom-storage checkpoint or restore operation.
After
cuCheckpointProcessCheckpointorcuCheckpointProcessRestorewith custom storage,cuCheckpointOperationCompleteshould be called when the application has finished or enqueued (on a stream) the required copies (for checkpoint, GPU mappings to custom storage and for restore, custom storage into GPU mappings) so the driver can finish the operation.cuCheckpointOperationCompletewill first synchronize on the streams returned bycuCheckpointProcessCheckpointorcuCheckpointProcessRestore. The driver assumes that the application has completed copying the memory to or from custom storage once synchronization is done. None of the streams returned bycuCheckpointProcessCheckpointorcuCheckpointProcessRestoreshould be in stream capture mode; any attempt to do so would result inCUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED. Once the synchronization is done,cuCheckpointOperationCompletewill unmap the GPU memory that was mapped on each GPU in a particularcuCheckpointProcessCheckpointorcuCheckpointProcessRestoreoperation.cuCheckpointOperationCompleteidentifies the operation to be completed usinghandle. This handle is set bycuCheckpointProcessCheckpointorcuCheckpointProcessRestore. When the call returns successfully, the target process will be in theCU_PROCESS_STATE_CHECKPOINTEDstate when completing a checkpoint operation or theCU_PROCESS_STATE_LOCKEDstate when completing a restore operation.- Parameters:
handle (intptr_t) –
CUcheckpointCustomStorageInfo.handleset by a priorcuCheckpointProcessCheckpointorcuCheckpointProcessRestorecall.
See also
cuCheckpointOperationComplete