mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5097
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4580
Author: @potoior
Created: 10/29/2026
Status: ❌ Closed
Base:
main← Head:fix/aarch64-cpu-topology📝 Commits (1)
92b86c5fix(pool): identify Linux physical cores by thread_siblings_list (#4578)📊 Changes
1 file changed (+36 additions, -9 deletions)
View changed files
📝
src/kernels/cpu/pool.cpp(+36 -9)📄 Description
Fixes #4578.
Problem
On some aarch64 SoCs (here a Jetson AGX Thor / Tegra, 14 logical CPUs) every CPU reports
topology/core_id = 0andphysical_package_id = 0. The Linux topology reader insrc/kernels/cpu/pool.cppkeys a physical core byphysical_package_id * 1e6 + core_id, so all CPUs collapsed to one core and the CPU expert pool started a single worker:strata tune autoalso reportedfacts.workers = 1.Change
Identify the physical core by
thread_siblings_list(the logical CPUs that share one core), using the smallest CPU id in the list as the key. On an SMT x86 core the list is e.g.0,16, which names the same smallest id from both threads, so the grouping is unchanged there; the code falls back to(pkg, core)when the file is absent or unreadable. Sibling lookup (sibling_of) and the physical-core count (p_cores) now use the same key.Validation (on the affected hardware)
Jetson AGX Thor, aarch64, 14 logical CPUs, source build
-DCMAKE_CUDA_ARCHITECTURES=110:CPU pool: 1 workers by default (1 physical cores, 14 logical processors),1 expert-pool workers + the host threadCPU pool: 13 workers by default (14 physical cores, 14 logical processors),13 expert-pool workers + the host thread/healthok.pool_plan_test: OK (the x86 plan cases are unchanged).pool_test: SKIPPED on aarch64 (needs AVX-512), not a regression.Not done
No new automated test:
detect_cpu_topologyreads/sysdirectly (noSTRATA_TEST_SYSFS_ROOThook, unlikecpu_numa_node), so a fake-sysfs unit test would need that hook first. Happy to add one if you want the refactor.Reproduction status: reproduced and fixed on the machine above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.