Align scheduler thread count with CLI configuration

This commit is contained in:
Marek Lemańczyk committed 2025-10-20 00:01:21 +02:00
1 parent e4f6cbbe25
commit bad5c28fdf
3 files changed
+75 -6

No files matched your search

+1
View File
@@ -55,6 +55,7 @@ internal static class Program
ulong remainder = currentP % 6UL;
bool startPrimeProvided = _cliArguments.StartPrimeProvided;
int threadCount = Math.Max(1, _cliArguments.ThreadCount);
UnboundedTaskScheduler.ConfigureThreadCount(threadCount);
int blockSize = Math.Max(1, _cliArguments.BlockSize);
int gpuPrimeThreads = Math.Max(1, _cliArguments.GpuPrimeThreads);
int gpuPrimeBatch = Math.Max(1, _cliArguments.GpuPrimeBatch);