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:
MoneroOcean 2024-06-01 08:41:46 -07:00 committed by GitHub
commit d59522e5f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -55,8 +55,8 @@ class MoBenchmark : public IJobResultListener {
// below here use prefetch-disabled MSR setup, keep them grouped
// so MSR setting doesn't have to flip back and forth
# ifdef XMRIG_ALGO_GHOSTRIDER
Algorithm::FLEX_KCN,
Algorithm::GHOSTRIDER_RTM,
Algorithm::FLEX_KCN,
# endif
# ifdef XMRIG_ALGO_CN_HEAVY
Algorithm::CN_HEAVY_XHV,