Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
SimDiagnostics Struct Reference

Diagnostics container for special-function faults and fallback. More...

#include <sim_diagnostics.h>

Collaboration diagram for SimDiagnostics:

Public Attributes

SimSpecialFallbackFn fallback_user
 
void * fallback_userdata
 
volatile int fault_lock
 
uint64_t fault_count
 
SimSpecialEvalReport fault_last
 
char fault_function [64]
 
uint64_t kernel_dispatch_count
 
uint64_t kernel_fallback_count
 
bool kernel_last_valid
 
bool kernel_last_fallback_used
 
SimDiagnosticBackendKind kernel_last_requested_backend
 
SimDiagnosticBackendKind kernel_last_executed_backend
 
char kernel_last_operator [64]
 
char kernel_last_fallback_reason [96]
 
bool enable_invariant_checks
 
uint64_t representation_complex_promotions
 
uint64_t representation_domain_adjustments
 

Detailed Description

Diagnostics container for special-function faults and fallback.

Member Data Documentation

◆ enable_invariant_checks

bool SimDiagnostics::enable_invariant_checks

Enable lightweight invariant checks post-operator.

◆ fallback_user

SimSpecialFallbackFn SimDiagnostics::fallback_user

Optional user-provided fallback.

◆ fallback_userdata

void* SimDiagnostics::fallback_userdata

Userdata forwarded to fallback.

◆ fault_count

uint64_t SimDiagnostics::fault_count

Total observed special-function faults.

◆ fault_function

char SimDiagnostics::fault_function[64]

Storage for last fault function label.

◆ fault_last

SimSpecialEvalReport SimDiagnostics::fault_last

Last recorded fault report.

◆ fault_lock

volatile int SimDiagnostics::fault_lock

Spin-lock guarding fault state.

◆ kernel_dispatch_count

uint64_t SimDiagnostics::kernel_dispatch_count

Total kernel dispatch attempts.

◆ kernel_fallback_count

uint64_t SimDiagnostics::kernel_fallback_count

Kernel dispatches that fell back to CPU.

◆ kernel_last_executed_backend

SimDiagnosticBackendKind SimDiagnostics::kernel_last_executed_backend

Backend that executed the last kernel.

◆ kernel_last_fallback_reason

char SimDiagnostics::kernel_last_fallback_reason[96]

Last CPU fallback reason.

◆ kernel_last_fallback_used

bool SimDiagnostics::kernel_last_fallback_used

True when the last kernel ran via CPU fallback.

◆ kernel_last_operator

char SimDiagnostics::kernel_last_operator[64]

Last kernel operator name.

◆ kernel_last_requested_backend

SimDiagnosticBackendKind SimDiagnostics::kernel_last_requested_backend

Requested backend for last kernel.

◆ kernel_last_valid

bool SimDiagnostics::kernel_last_valid

True when a kernel dispatch has been recorded.

◆ representation_complex_promotions

uint64_t SimDiagnostics::representation_complex_promotions

Count of complex promotions performed by resolver.

◆ representation_domain_adjustments

uint64_t SimDiagnostics::representation_domain_adjustments

Count of domain adjustments performed by resolver.


The documentation for this struct was generated from the following file: