AstroBWT OpenCL code

This commit is contained in:
SChernykh 2020-03-22 22:36:21 +01:00
parent 50eb7ba2fd
commit fbedf197ab
34 changed files with 2106 additions and 6 deletions

View file

@ -81,6 +81,20 @@ public:
}
# endif
# ifdef XMRIG_ALGO_ASTROBWT
OclThread(uint32_t index, uint32_t intensity, uint32_t threads) :
m_fields(4),
m_threads(threads, -1),
m_index(index),
m_memChunk(0),
m_stridedIndex(0),
m_unrollFactor(1),
m_worksize(1)
{
setIntensity(intensity);
}
# endif
OclThread(const rapidjson::Value &value);
inline bool isAsm() const { return m_gcnAsm; }
@ -105,6 +119,7 @@ private:
enum Fields {
STRIDED_INDEX_FIELD,
RANDOMX_FIELDS,
ASTROBWT_FIELDS,
FIELD_MAX
};