Align scheduler thread count with CLI configuration
This commit is contained in:
1 parent
e4f6cbbe25
commit
bad5c28fdf
3 files changed
+75
-6
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user