mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3706] [Engine] pool_tasks_test and pool_cores_test pass on a two-node machine #4756
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#4756
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/3706
Author: @baptisterajaut
Created: 10/22/2026
Status: 🔄 Open
Base:
main← Head:fix/pool-tests-two-nodes📝 Commits (1)
72a6cfctest: pool_tasks_test and pool_cores_test pass on a two-node machine📊 Changes
2 files changed (+24 additions, -1 deletions)
View changed files
📝
src/kernels/cpu/pool_cores_test.cpp(+21 -1)📝
src/kernels/cpu/pool_tasks_test.cpp(+3 -0)📄 Description
Problem and result
Since the NUMA pool runs by itself on a two-node machine,
pool_tasks_testandpool_cores_testfail on any two-socket box: both compare a pool built on the real machine with what a one-node machine gives, and the split now places the workers on the sockets in turn. xrip reported it in #3201 on 2x E5-2670 v2, and it reproduces here on 2x Xeon Gold 6226 at011c9e60witha one-node fake machine changed the pool's workers or coresandFAIL: default: the workers sit on the topology's cores, in its order. With this change both pass on that box.Related discussion
#3201 (xrip's report of the two failures). Test-only change, no scope agreement needed.
Approach
Each check now builds its real-machine pool with
STRATA_NUMA_POOL=0and clears it afterwards: inpool_tasks_testonly for poolbof the one-node comparison, inpool_cores_testonly for block 1 (the default placement), which tests--pool-cores, not the split. Skipping the checks on two-node machines would drop them exactly where they matter. The engine is untouched.Validation
Passed: at
011c9e60+ this commit, CUDA build (Release, sm_86, Ninja,STRATA_BUILD_TESTS=ON), Debian 12, 2x Xeon Gold 6226, 2 NUMA nodes:pool_tasks_test,pool_cores_test,numa_pool_testandpool_plan_testexit 0, run directly and undernumactl --cpunodebind=0 --membind=0(one node seen).Failed:
pool_tasks_testwithSTRATA_NUMA_POOL=0already exported fails withnuma-split slices 0, expected 2, before and after this change: the off switch beats the test's ownSTRATA_NUMA_SPLIT=test, asnuma_pool_testsays it should. Not changed here.Not run: Windows (the
_putenv_sbranch, copied frompool_tasks_test), HIP, SYCL, a real single-socket machine.Limits
The suite still assumes no NUMA variable is exported when it starts.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.