mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-25 21:52:54 -05:00
Fix OpenCL.
This commit is contained in:
@@ -37,6 +37,16 @@ xmrig::Algorithm::Id xmrig::RxAlgo::apply(Algorithm::Id algorithm)
|
||||
}
|
||||
|
||||
|
||||
xmrig::Algorithm::Id xmrig::RxAlgo::id(Algorithm::Id algorithm)
|
||||
{
|
||||
if (algorithm == Algorithm::RX_SFX || algorithm == Algorithm::RX_V) {
|
||||
return Algorithm::RX_0;
|
||||
}
|
||||
|
||||
return algorithm;
|
||||
}
|
||||
|
||||
|
||||
const RandomX_ConfigurationBase *xmrig::RxAlgo::base(Algorithm::Id algorithm)
|
||||
{
|
||||
switch (algorithm) {
|
||||
|
||||
@@ -46,6 +46,7 @@ class RxAlgo
|
||||
{
|
||||
public:
|
||||
static Algorithm::Id apply(Algorithm::Id algorithm);
|
||||
static Algorithm::Id id(Algorithm::Id algorithm);
|
||||
static const RandomX_ConfigurationBase *base(Algorithm::Id algorithm);
|
||||
static uint32_t programCount(Algorithm::Id algorithm);
|
||||
static uint32_t programIterations(Algorithm::Id algorithm);
|
||||
|
||||
Reference in New Issue
Block a user