Commit ea55a0d
committed
Gate TPU power profiling events behind profile_power_events flag
On GPU, the CUPTI tracer does not recognize TPU-specific keys in
advanced_configuration (tpu_power_trace_level, e2e_enable_fw_*_event),
causing an INVALID_ARGUMENT error that aborts the GPU xplane trace and
leaves only CPU traces behind.
Introduce a profile_power_events flag (default False) that gates the
TPU-specific advanced_configuration block. GPU runs are unaffected by
default; TPU users who want power/thermal tracing can opt in with
profile_power_events=True.1 parent b5f41ec commit ea55a0d
3 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
| 914 | + | |
914 | 915 | | |
915 | 916 | | |
916 | 917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1380 | 1380 | | |
1381 | 1381 | | |
1382 | 1382 | | |
| 1383 | + | |
1383 | 1384 | | |
1384 | 1385 | | |
1385 | 1386 | | |
| |||
0 commit comments