Skip to main content

M_debugVerifyReplayModelSync

Function M_debugVerifyReplayModelSync 

Source
pub unsafe extern "C" fn M_debugVerifyReplayModelSync(
    context: *const M_RuntimeContext,
    initializedModel: *mut M_AsyncModel,
    graphKeys: *const u64,
    numGraphKeys: usize,
    inputs: *const *mut M_AsyncTensor,
    numInputs: usize,
    status: *mut M_Status,
)
Expand description

Executes eagerly and verifies that the kernel launch trace matches a previously captured device graph.

This is a debugging tool. It runs the model eagerly (not via the captured graph) and compares the resulting kernel launch trace against the trace recorded during M_captureModelSync(). If the traces differ, an error is reported in status.

@param context The runtime context, from M_newRuntimeContext(). @param initializedModel The model containing the captured graph, from M_initModel(). @param graphKeys Array of uint64_t graph keys matching those used in M_captureModelSync(). @param numGraphKeys Number of graph keys. @param inputs Array of input tensors. @param numInputs Number of input tensors. @param status The status used to report errors in the case of failures.