Skip to content

ggml: add logical worker lanes for trace profiling#13

Merged
alex-spacemit merged 1 commit into
spacemit-com:spacemit-mtmdfrom
co-seven:profile-trace-workers
Jul 2, 2026
Merged

ggml: add logical worker lanes for trace profiling#13
alex-spacemit merged 1 commit into
spacemit-com:spacemit-mtmdfrom
co-seven:profile-trace-workers

Conversation

@co-seven

@co-seven co-seven commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Wire ggml-profile into the ggml build behind GGML_BUILD_PROFILE and
enable CPU operator trace events. Emit operator begin/end events from
each compute worker, using stable logical trace lanes (pid=2, tid=ith)
named ggml-worker-N instead of Linux OS TIDs.

This makes GGML_TRACE=1 produce per-worker operator profiles that match
the configured compute thread count, especially when using a persistent
threadpool such as llama-bench.

@github-actions github-actions Bot added the ggml label Jul 2, 2026
  Wire ggml-profile into the ggml build behind GGML_BUILD_PROFILE and
  enable CPU operator trace events. Emit operator begin/end events from
  each compute worker, using stable logical trace lanes (pid=2, tid=ith)
  named ggml-worker-N instead of Linux OS TIDs.

  This makes GGML_TRACE=1 produce per-worker operator profiles that match
  the configured compute thread count, especially when using a persistent
  threadpool such as llama-bench.
@co-seven co-seven force-pushed the profile-trace-workers branch from 99d6ec7 to e7a4081 Compare July 2, 2026 05:38
@alex-spacemit alex-spacemit merged commit 9c370db into spacemit-com:spacemit-mtmd Jul 2, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants