Data Fields | |
uint8_t | allowOverwrite |
[in] Boolean, Allow checkpoint to save over existing checkpoint | |
CUcontext | ctx |
[in] Set to context to save from, or will use current context if NULL | |
uint8_t | optimizations |
[in] Mask of CUpti_CheckpointOptimizations flags for this checkpoint | |
void * | pPriv |
[in] Assign to NULL | |
size_t | reserveDeviceMB |
[in] Restrict checkpoint from using last N MB of device memory (-1 = use no device memory) | |
size_t | reserveHostMB |
[in] Restrict checkpoint from using last N MB of host memory (-1 = use no host memory) | |
size_t | structSize |
[in] Must be set to CUpti_Checkpoint_STRUCT_SIZE |
Checkpoint data is saved in device, host, and filesystem space. There are options to reserve memory at each level (device, host, filesystem) which are intended to allow a guarantee that a certain amount of memory will remain free for use after the checkpoint is saved. Note, however, that falling back to slower levels of memory (host, and then filesystem) to save the checkpoint will result in performance degradation. Currently, the filesystem limitation is not implemented. Note that falling back to filesystem storage may significantly impact the performance for saving and restoring a checkpoint.