1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-16 11:12:47 -05:00

Generate "rx" and "rx/wow" sections of CPU threads.

This commit is contained in:
XMRig
2019-07-06 11:31:12 +07:00
parent 9b14caa9f9
commit 9bf4c2c98f
3 changed files with 22 additions and 6 deletions

View File

@@ -130,7 +130,10 @@ rapidjson::Value xmrig::Algorithm::toJSON() const
size_t xmrig::Algorithm::memory() const
{
if (family() < RANDOM_X) {
const Family f = family();
assert(f != UNKNOWN);
if (f < RANDOM_X) {
return CnAlgo<>::memory(m_id);
}
@@ -138,7 +141,7 @@ size_t xmrig::Algorithm::memory() const
return 0x100000;
}
return 0;
return 0x200000;
}
@@ -181,12 +184,15 @@ xmrig::Algorithm::Family xmrig::Algorithm::family(Id id)
# endif
# ifdef XMRIG_ALGO_RANDOMX
case RX_0:
case RX_WOW:
case RX_LOKI:
return RANDOM_X;
# endif
default:
break;
case INVALID:
case MAX:
return UNKNOWN;
}
return UNKNOWN;