Revert "IndexerThreadPool: Only GPU pinning, no CPU pinning"
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 12m41s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 13m20s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 15m7s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 16m12s
Build Packages / build:rpm (rocky8) (push) Successful in 17m22s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 17m57s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 18m3s
Build Packages / build:rpm (rocky9) (push) Successful in 18m42s
Build Packages / Generate python client (push) Successful in 1m13s
Build Packages / Build documentation (push) Successful in 1m52s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (ubuntu2404) (push) Successful in 11m20s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 12m42s
Build Packages / XDS test (durin plugin) (push) Successful in 9m31s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 9m24s
Build Packages / XDS test (neggia plugin) (push) Successful in 9m20s
Build Packages / DIALS test (push) Successful in 13m52s
Build Packages / Unit tests (push) Successful in 58m36s

This reverts commit b5eb24d4e8.
This commit is contained in:
2026-04-15 20:59:21 +02:00
parent 5a8e4a7ad5
commit 2efa26fdb5
@@ -69,11 +69,14 @@ std::future<IndexerResult> IndexerThreadPool::Run(const DiffractionExperiment &e
void IndexerThreadPool::Worker(int32_t threadIndex, const NUMAHWPolicy &numa_policy, const IndexingSettings &settings) {
try {
// IndexerThreadPool is bound to GPU, but not to CPU choice
#ifdef JFJOCH_USE_CUDA
auto gpu_count = get_gpu_count();
if (gpu_count > 0)
set_gpu(threadIndex % gpu_count);
NUMAHWPolicy::SelectGPUAndItsNUMA(threadIndex % gpu_count);
else
numa_policy.Bind(threadIndex);
#else
numa_policy.Bind(threadIndex);
#endif
} catch (...) {
// NUMA policy errors are not critical and should be ignored for the time being.