Skip to content

Commit a2cf3e1

Browse files
committed
tfbuilder: decrease min number of ucx threads to 4
1 parent 2f9e646 commit a2cf3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TfBuilder/TfBuilderInputUCX.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ bool TfBuilderInputUCX::start()
134134
{
135135
// setting configuration options
136136
mThreadPoolSize = std::clamp(mConfig->getUInt64Param(UcxTfBuilderThreadPoolSizeKey, UcxTfBuilderThreadPoolSizeDefault), std::size_t(0), std::size_t(256));
137-
mThreadPoolSize = std::max(std::size_t(16), (mThreadPoolSize == 0) ? std::thread::hardware_concurrency() : mThreadPoolSize);
137+
mThreadPoolSize = std::max(std::size_t(4), (mThreadPoolSize == 0) ? std::thread::hardware_concurrency() : mThreadPoolSize);
138138
mNumRmaOps = std::clamp(mConfig->getUInt64Param(UcxNumConcurrentRmaGetOpsKey, UcxNumConcurrentRmaGetOpsDefault), std::size_t(1), std::size_t(64));
139139

140140
IDDLOG("TfBuilderInputUCX: Configuration loaded. thread_pool={} num_rma_ops={}", mThreadPoolSize, mNumRmaOps);

0 commit comments

Comments
 (0)