1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-28 08:22:48 -05:00

Improved thread self test error message.

This commit is contained in:
XMRig
2019-09-16 01:27:51 +07:00
parent d8b07570a3
commit 2a107cc463
6 changed files with 30 additions and 8 deletions

View File

@@ -25,6 +25,8 @@
#include "backend/opencl/OclLaunchData.h"
#include "backend/common/Tags.h"
#include "backend/opencl/OclConfig.h"
@@ -45,3 +47,9 @@ bool xmrig::OclLaunchData::isEqual(const OclLaunchData &other) const
return (other.algorithm == algorithm &&
other.thread == thread);
}
const char *xmrig::OclLaunchData::tag()
{
return ocl_tag();
}

View File

@@ -62,6 +62,8 @@ public:
inline bool operator!=(const OclLaunchData &other) const { return !isEqual(other); }
inline bool operator==(const OclLaunchData &other) const { return isEqual(other); }
static const char *tag();
cl_context ctx = nullptr;
const Algorithm algorithm;
const bool cache;