mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-24 21:32:47 -05:00
Merge pull request #142 from Spudz76/pr-mo-fix-flex-switch
Fixup switch warning; Use count_limit2; Benchmark ghostrider before flex
This commit is contained in:
@@ -387,8 +387,10 @@ xmrig::CpuThreads xmrig::BasicCpuInfo::threads(const Algorithm &algorithm, uint3
|
||||
|
||||
# ifdef XMRIG_ALGO_GHOSTRIDER
|
||||
switch (algorithm.id()) {
|
||||
case Algorithm::GHOSTRIDER_RTM: return CpuThreads(std::max<size_t>(count / 2, 1), 8);
|
||||
case Algorithm::FLEX_KCN: return CpuThreads(std::max<size_t>(count / 2, 1), 1);
|
||||
case Algorithm::GHOSTRIDER_RTM: return CpuThreads(std::max<size_t>(count_limit2, 1), 8);
|
||||
case Algorithm::FLEX_KCN: return CpuThreads(std::max<size_t>(count_limit2, 1), 1);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
# endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user