Technical question: invariants of Pascal+ instruction-level compute-preemption context save/restore

Hello NVIDIA CUDA engineers,

I’m investigating the architectural boundary between physical execution state and execution realization, specifically NVIDIA’s instruction-level compute-preemption mechanism introduced with Pascal.

I’m deliberately distinguishing this from the higher-level cuda-checkpoint facility. My question concerns the underlying hardware/driver context-save and restore mechanism for an actively executing compute workload—particularly the preservation of register and other on-chip execution state during preemption.

I’m not looking for undocumented APIs or implementation details. I’m trying to establish the documented architectural invariants.

Specifically:

  1. Execution-image identity
    Is a preempted compute context inherently tied to the exact compiled kernel/code object from which it originated?

  2. Register state
    Is the register allocation/layout of the original compiled code part of the state required for a valid restore?

  3. Execution configuration
    Which aspects of the original execution configuration must remain invariant for restoration—for example, grid/block configuration, shared-memory configuration, warp/thread organization, or related execution metadata?

  4. Instruction state
    Is the saved instruction/execution state required to resume against the same compiled instruction image, or does NVIDIA define an abstraction separating the saved execution state from that particular realization?

  5. Semantically equivalent realizations
    Does NVIDIA document any mechanism by which a saved context from one compiled realization can be restored or continued using a different, semantically equivalent compiled realization?

  6. Portability / translation
    Is there any NVIDIA-supported export/import, translation, or transformation mechanism for a compute-preemption context that permits its state to be interpreted by a different execution image?

If the answer to the latter is no, I’m particularly interested in whether that boundary is:

  • an architectural invariant,

  • a driver/runtime contract,

  • a consequence of the compiled execution image,

  • or simply outside the supported programming model.

The distinction I’m investigating is:

semantic computation
       ↓
realization R1
       ↓
partial physical execution
       ↓
saved execution state
       ↓
realization R2
       ↓
continued execution

The question is not whether NVIDIA currently exposes an API for this. It is whether the architecture defines the saved execution state as necessarily bound to the realization that produced it, or whether there is a documented abstraction that separates useful execution state from realization identity.

Any relevant NVIDIA documentation, architectural reference, CUDA documentation, or guidance from an engineer familiar with the preemption mechanism would be extremely helpful.

Thank you,

Jacque Antoine DeGraff
Founder / Lead Engineer
SSDF Inc.
Miami, Florida

Can you tell us more about what you are trying to achieve? Thanks!