Allow use old CUDA plugin.
This commit is contained in:
parent
a25042db72
commit
449617d717
4 changed files with 14 additions and 16 deletions
|
@ -46,12 +46,20 @@ 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);
|
||||
static uint32_t programSize(Algorithm::Id algorithm);
|
||||
static uint32_t version(Algorithm::Id algorithm);
|
||||
|
||||
static inline Algorithm::Id id(Algorithm::Id algorithm)
|
||||
{
|
||||
if (algorithm == Algorithm::RX_SFX || algorithm == Algorithm::RX_V) {
|
||||
return Algorithm::RX_0;
|
||||
}
|
||||
|
||||
return algorithm;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue