mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 08:23:34 -05:00
KawPow: tuned work group size for OpenCL
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
||||
}
|
||||
# endif
|
||||
|
||||
# if defined XMRIG_ALGO_ASTROBWT || defined XMRIG_ALGO_KAWPOW
|
||||
# ifdef XMRIG_ALGO_ASTROBWT
|
||||
OclThread(uint32_t index, uint32_t intensity, uint32_t threads) :
|
||||
m_fields(4),
|
||||
m_threads(threads, -1),
|
||||
@@ -81,6 +81,20 @@ public:
|
||||
}
|
||||
# endif
|
||||
|
||||
# ifdef XMRIG_ALGO_KAWPOW
|
||||
OclThread(uint32_t index, uint32_t intensity, uint32_t worksize, uint32_t threads) :
|
||||
m_fields(8),
|
||||
m_threads(threads, -1),
|
||||
m_index(index),
|
||||
m_memChunk(0),
|
||||
m_stridedIndex(0),
|
||||
m_unrollFactor(1),
|
||||
m_worksize(worksize)
|
||||
{
|
||||
setIntensity(intensity);
|
||||
}
|
||||
# endif
|
||||
|
||||
OclThread(const rapidjson::Value &value);
|
||||
|
||||
inline bool isAsm() const { return m_gcnAsm; }
|
||||
@@ -106,6 +120,7 @@ private:
|
||||
STRIDED_INDEX_FIELD,
|
||||
RANDOMX_FIELDS,
|
||||
ASTROBWT_FIELDS,
|
||||
KAWPOW_FIELDS,
|
||||
FIELD_MAX
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user