From b5eb24d4e888c6576f5c47cc901558f7c8acbef1 Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Wed, 15 Apr 2026 15:48:19 +0200 Subject: [PATCH] IndexerThreadPool: Only GPU pinning, no CPU pinning --- image_analysis/indexing/IndexerThreadPool.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/image_analysis/indexing/IndexerThreadPool.cpp b/image_analysis/indexing/IndexerThreadPool.cpp index ee6ff3ff..1a845497 100644 --- a/image_analysis/indexing/IndexerThreadPool.cpp +++ b/image_analysis/indexing/IndexerThreadPool.cpp @@ -69,14 +69,11 @@ std::future 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) - NUMAHWPolicy::SelectGPUAndItsNUMA(threadIndex % gpu_count); - else - numa_policy.Bind(threadIndex); -#else - numa_policy.Bind(threadIndex); + set_gpu(threadIndex % gpu_count); #endif } catch (...) { // NUMA policy errors are not critical and should be ignored for the time being.