CUDApp
CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.
Brought by drakestapleton
CUDApp / docs / trace / unified-trace.chrome.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://github.com/aien-dev/CUDApp/docs/trace/unified-trace.chrome.schema.json", |
| 4 | "title": "aien.unified-trace/1, Chrome trace JSON export (written by tools/omtrace/omtrace.om)", |
| 5 | "type": "object", |
| 6 | "required": ["displayTimeUnit", "otherData", "traceEvents"], |
| 7 | "additionalProperties": false, |
| 8 | "properties": { |
| 9 | "displayTimeUnit": { "const": "ns" }, |
| 10 | "otherData": { |
| 11 | "type": "object", |
| 12 | "required": ["schema", "clock", "device_timing", "dropped", "refused", "open_spans"], |
| 13 | "additionalProperties": false, |
| 14 | "properties": { |
| 15 | "schema": { "const": "aien.unified-trace/1" }, |
| 16 | "clock": { "type": "string" }, |
| 17 | "device_timing": { "const": "NOT_RUN" }, |
| 18 | "dropped": { "type": "integer", "minimum": 0 }, |
| 19 | "refused": { "type": "integer", "minimum": 0 }, |
| 20 | "open_spans": { "type": "integer", "minimum": 0 } |
| 21 | } |
| 22 | }, |
| 23 | "traceEvents": { |
| 24 | "type": "array", |
| 25 | "items": { |
| 26 | "oneOf": [ |
| 27 | { "$ref": "#/$defs/meta" }, |
| 28 | { "$ref": "#/$defs/span" }, |
| 29 | { "$ref": "#/$defs/instant" } |
| 30 | ] |
| 31 | } |
| 32 | } |
| 33 | }, |
| 34 | "$defs": { |
| 35 | "name": { "type": "string", "pattern": "^[A-Za-z0-9._:/-]{1,63}$" }, |
| 36 | "kind": { |
| 37 | "enum": ["compile.phase", "diag", "gpu.open", "kernel.launch", "mem.alloc", "mem.copy", |
| 38 | "host.wait", "trap", "user.span", "user.mark", "mem.moved", "notice"] |
| 39 | }, |
| 40 | "time": { "type": "number", "minimum": 0 }, |
| 41 | "int": { "type": "integer" }, |
| 42 | "args": { |
| 43 | "type": "object", |
| 44 | "additionalProperties": false, |
| 45 | "properties": { |
| 46 | "status": { "$ref": "#/$defs/int" }, |
| 47 | "bytes": { "$ref": "#/$defs/int" }, |
| 48 | "count": { "$ref": "#/$defs/int" }, |
| 49 | "file": { "type": "string" }, |
| 50 | "line": { "$ref": "#/$defs/int" }, |
| 51 | "col": { "$ref": "#/$defs/int" }, |
| 52 | "bytes_allocated": { "$ref": "#/$defs/int" }, |
| 53 | "code_bytes": { "$ref": "#/$defs/int" }, |
| 54 | "elements": { "$ref": "#/$defs/int" }, |
| 55 | "stage": { "$ref": "#/$defs/int" }, |
| 56 | "stage_name": { "enum": ["refused", "build.upload", "submit", "host.wait", "complete.check"] }, |
| 57 | "slot": { "$ref": "#/$defs/int" }, |
| 58 | "direction": { "enum": [0, 1, 2] }, |
| 59 | "a0": { "$ref": "#/$defs/int" }, |
| 60 | "a1": { "$ref": "#/$defs/int" }, |
| 61 | "code": { "$ref": "#/$defs/int" }, |
| 62 | "trap_name": { "type": "string" }, |
| 63 | "candidates": { "type": "string" } |
| 64 | } |
| 65 | }, |
| 66 | "meta": { |
| 67 | "type": "object", |
| 68 | "required": ["name", "ph", "pid", "tid", "args"], |
| 69 | "additionalProperties": false, |
| 70 | "properties": { |
| 71 | "name": { "const": "process_name" }, |
| 72 | "ph": { "const": "M" }, |
| 73 | "pid": { "$ref": "#/$defs/int" }, |
| 74 | "tid": { "const": 0 }, |
| 75 | "args": { |
| 76 | "type": "object", |
| 77 | "required": ["name"], |
| 78 | "additionalProperties": false, |
| 79 | "properties": { "name": { "type": "string" } } |
| 80 | } |
| 81 | } |
| 82 | }, |
| 83 | "span": { |
| 84 | "type": "object", |
| 85 | "required": ["name", "cat", "ph", "ts", "dur", "pid", "tid", "args"], |
| 86 | "additionalProperties": false, |
| 87 | "properties": { |
| 88 | "name": { "$ref": "#/$defs/name" }, |
| 89 | "cat": { "$ref": "#/$defs/kind" }, |
| 90 | "ph": { "const": "X" }, |
| 91 | "ts": { "$ref": "#/$defs/time" }, |
| 92 | "dur": { "$ref": "#/$defs/time" }, |
| 93 | "pid": { "$ref": "#/$defs/int" }, |
| 94 | "tid": { "const": 1 }, |
| 95 | "args": { "$ref": "#/$defs/args" } |
| 96 | } |
| 97 | }, |
| 98 | "instant": { |
| 99 | "type": "object", |
| 100 | "required": ["name", "cat", "ph", "s", "ts", "pid", "tid", "args"], |
| 101 | "additionalProperties": false, |
| 102 | "properties": { |
| 103 | "name": { "$ref": "#/$defs/name" }, |
| 104 | "cat": { "$ref": "#/$defs/kind" }, |
| 105 | "ph": { "const": "i" }, |
| 106 | "s": { "const": "p" }, |
| 107 | "ts": { "$ref": "#/$defs/time" }, |
| 108 | "pid": { "$ref": "#/$defs/int" }, |
| 109 | "tid": { "const": 1 }, |
| 110 | "args": { "$ref": "#/$defs/args" } |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | } |