Merged
Conversation
- Replace std::mutex with spinlocks and bitmask circular queues in AICPU scheduler ready queues; remove redundant atomic counters - Add orchestrator ready queue (SPSC ring) to push early-return ready tasks directly, replacing O(N) readiness scan in scheduler - Stack-allocate tensormap lookup results (PTO2LookupResult) to avoid per-lookup heap allocation from std::vector - Inline Tensor copy ctor/operator= into header; skip memset on task ring slot allocation; bulk memcpy params in submit_task - Add PTO2_SPIN_PAUSE_LIGHT() (yield without sched_yield) for tight spinloops on aarch64/x86_64 - Add DEV_ALWAYS log level for diagnostics; change diagnostic reports from DEV_ERROR to DEV_ALWAYS, per-task logs from DEV_INFO to DEV_DEBUG - Add profiling instrumentation to scheduler, orchestrator, and host runtime init - Vectorize paged attention golden computation across batch dimension
b43ff97 to
d372c32
Compare
ChaoWao
approved these changes
Feb 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AICPU scheduler ready queues; remove redundant atomic counters
tasks directly, replacing O(N) readiness scan in scheduler
per-lookup heap allocation from std::vector
ring slot allocation; bulk memcpy params in submit_task
tight spinloops on aarch64/x86_64
from DEV_ERROR to DEV_ALWAYS, per-task logs from DEV_INFO to DEV_DEBUG
runtime init