[PR #3706] [Engine] pool_tasks_test and pool_cores_test pass on a two-node machine #4756

Open
opened 2026-11-07 15:38:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 72a6cfc test: 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_test and pool_cores_test fail 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 at 011c9e60 with a one-node fake machine changed the pool's workers or cores and FAIL: default: the workers sit on the topology's cores, in its order. With this change both pass on that box.

#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=0 and clears it afterwards: in pool_tasks_test only for pool b of the one-node comparison, in pool_cores_test only 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_test and pool_plan_test exit 0, run directly and under numactl --cpunodebind=0 --membind=0 (one node seen).

Failed: pool_tasks_test with STRATA_NUMA_POOL=0 already exported fails with numa-split slices 0, expected 2, before and after this change: the off switch beats the test's own STRATA_NUMA_SPLIT=test, as numa_pool_test says it should. Not changed here.

Not run: Windows (the _putenv_s branch, copied from pool_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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3706 **Author:** [@baptisterajaut](https://github.com/baptisterajaut) **Created:** 10/22/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/pool-tests-two-nodes` --- ### 📝 Commits (1) - [`72a6cfc`](https://github.com/Niko1221/Strata/commit/72a6cfcc31fecbadcb4db10e8e39dfce994f74fe) test: pool_tasks_test and pool_cores_test pass on a two-node machine ### 📊 Changes **2 files changed** (+24 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/kernels/cpu/pool_cores_test.cpp` (+21 -1) 📝 `src/kernels/cpu/pool_tasks_test.cpp` (+3 -0) </details> ### 📄 Description ## Problem and result Since the NUMA pool runs by itself on a two-node machine, `pool_tasks_test` and `pool_cores_test` fail 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 at 011c9e60 with `a one-node fake machine changed the pool's workers or cores` and `FAIL: 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=0` and clears it afterwards: in `pool_tasks_test` only for pool `b` of the one-node comparison, in `pool_cores_test` only 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_test` and `pool_plan_test` exit 0, run directly and under `numactl --cpunodebind=0 --membind=0` (one node seen). **Failed:** `pool_tasks_test` with `STRATA_NUMA_POOL=0` already exported fails with `numa-split slices 0, expected 2`, before and after this change: the off switch beats the test's own `STRATA_NUMA_SPLIT=test`, as `numa_pool_test` says it should. Not changed here. **Not run:** Windows (the `_putenv_s` branch, copied from `pool_tasks_test`), HIP, SYCL, a real single-socket machine. ## Limits The suite still assumes no NUMA variable is exported when it starts. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4756
No description provided.