Print detailed information about OpenCL threads.

This commit is contained in:
XMRig 2019-09-05 13:00:40 +07:00
parent 1ad30d50a6
commit 0e362f38bc
4 changed files with 38 additions and 9 deletions

View file

@ -42,6 +42,8 @@ template<Algorithm::Id ALGO = Algorithm::INVALID>
class CnAlgo
{
public:
constexpr CnAlgo() {};
constexpr inline Algorithm::Id base() const { static_assert(ALGO > Algorithm::INVALID && ALGO < Algorithm::RX_0, "invalid CRYPTONIGHT algorithm"); return Algorithm::CN_2; }
constexpr inline bool isHeavy() const { return memory() == CN_MEMORY * 2; }
constexpr inline bool isR() const { return ALGO == Algorithm::CN_R; }