Fix OpenCL.
This commit is contained in:
parent
45412a2ace
commit
2911bb3a81
6 changed files with 15 additions and 105 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue