MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / _default_kernel_entry

Function _default_kernel_entry

orchestrate.py:112–133  ·  view source on GitHub ↗

Return a default kernel entry for the orchestration state.

(
    rank: int,
    file: str,
    op_type: str,
    pct_total: float = 0.0,
)

Source from the content-addressed store, hash-verified

110
111
112def _default_kernel_entry(
113 rank: int,
114 file: str,
115 op_type: str,
116 pct_total: float = 0.0,
117) -> dict:
118 """Return a default kernel entry for the orchestration state."""
119 return {
120 "rank": rank,
121 "file": file,
122 "op_type": op_type,
123 "pct_total": pct_total,
124 "status": STATUS_PENDING,
125 "baseline_tflops": None,
126 "best_tflops": None,
127 "speedup": None,
128 "pct_peak": None,
129 "experiments_run": 0,
130 "experiments_kept": 0,
131 "consecutive_reverts": 0,
132 "time_spent_minutes": 0,
133 }
134
135
136def _initialize_state_from_plan(plan: dict) -> dict:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected