LLM inference in C/C++
C++ ggml
hex-scripts: show trace events smaller than 100nsec in perfetto (#29614)
Trivikram Reddy1c4729414deb
diff --git a/scripts/snapdragon/ggml-hexagon-trace.py b/scripts/snapdragon/ggml-hexagon-trace.pyindex 760eb57d9c..5241dca153 100755--- a/scripts/snapdragon/ggml-hexagon-trace.py+++ b/scripts/snapdragon/ggml-hexagon-trace.py@@ -514,7 +514,7 @@ def generate_perfetto_trace(filtered_ops, trace_events, output_path):tm = time_mappers[dev]e['ts_ns'] = tm.cycle_to_ns(e['start_cyc'])dur_ns = tm.dur_cycles_to_ns(e['start_cyc'], e['end_cyc'] - e['start_cyc'])- e['dur_ns'] = max(dur_ns, 100)+ e['dur_ns'] = max(dur_ns, 1)# Allocate slots (sub-tracks) to prevent overlaps on same virtual trackactive_slots = defaultdict(list)