nki-kernel-bench / schema /timing.schema.json
jburtoft's picture
nki-kernel-bench v0.1
0fef070
Raw History Blame Contribute Delete
2.52 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "nki-kernel-bench/timing.schema.json",
"title": "timing.json",
"type": "object",
"required": [
"toolchain",
"runs"
],
"properties": {
"toolchain": {
"type": "object"
},
"runs": {
"type": "array",
"items": {
"type": "object",
"required": [
"shape_id",
"launch_grid",
"neff_md5",
"compiled_lnc",
"profiles",
"total_time_us",
"noise_pct",
"tables_kept"
],
"properties": {
"shape_id": {
"type": "string"
},
"launch_grid": {
"enum": [
1,
2
]
},
"neff_md5": {
"type": "string",
"pattern": "^[0-9a-f]{32}$"
},
"compiled_lnc": {
"enum": [
1,
2
]
},
"profiles": {
"type": "array",
"minItems": 2,
"items": {
"type": "object",
"required": [
"rep",
"total_time_us",
"n_instructions"
],
"properties": {
"rep": {
"type": "integer"
},
"total_time_us": {
"type": "number"
},
"n_instructions": {
"type": "integer"
},
"clock_ghz": {
"type": [
"number",
"null"
]
}
}
}
},
"total_time_us": {
"type": "number"
},
"noise_pct": {
"type": "number"
},
"tables_kept": {
"type": "array",
"items": {
"type": "string"
}
},
"ramp_frac": {
"type": "number",
"description": "Tensor-Engine dI/dt warm-up cost / total time (min over reps), tools/ramp_cost.py"
},
"ramp_flag": {
"type": "boolean",
"description": "ramp_frac > 0.05"
},
"opening_ramp_us": {
"type": "number",
"description": "Tensor-Engine dI/dt ramp cost of the kernel's first matmul burst (min-time rep)"
},
"warm_est_us": {
"type": "number",
"description": "total_time_us - opening_ramp_us: estimated time when the Tensor Engine is already busy at kernel start (validated on trn2, eval_public/WARM_START.md)"
},
"placement": {
"type": "object",
"description": "same NEFF + inputs on both halves (pcores 0-3 / 4-7) of one trn2 device; see eval_public/PLACEMENT.md"
},
"controlled_us": {
"type": "number",
"description": "min(placement.half_A_us, half_B_us): placement-controlled time"
}
}
}
}
}
}