Return a default kernel entry for the orchestration state.
(
rank: int,
file: str,
op_type: str,
pct_total: float = 0.0,
)
| 110 | |
| 111 | |
| 112 | def _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 | |
| 136 | def _initialize_state_from_plan(plan: dict) -> dict: |
no outgoing calls
no test coverage detected