Allow use old CUDA plugin.

This commit is contained in:
XMRig
2019-12-20 21:10:13 +07:00
parent 13585a8c41
commit a5d13c4e64
4 changed files with 14 additions and 16 deletions

View File

@@ -27,7 +27,6 @@
#include "backend/opencl/OclLaunchData.h"
#include "backend/common/Tags.h"
#include "backend/opencl/OclConfig.h"
#include "crypto/rx/RxAlgo.h"
xmrig::OclLaunchData::OclLaunchData(const Miner *miner, const Algorithm &algorithm, const OclConfig &config, const OclPlatform &platform, const OclThread &thread, const OclDevice &device, int64_t affinity) :
@@ -44,8 +43,8 @@ xmrig::OclLaunchData::OclLaunchData(const Miner *miner, const Algorithm &algorit
bool xmrig::OclLaunchData::isEqual(const OclLaunchData &other) const
{
return (RxAlgo::id(other.algorithm) == RxAlgo::id(algorithm) &&
other.thread == thread);
return (other.algorithm == algorithm &&
other.thread == thread);
}