KawPow: tuned work group size for OpenCL
This commit is contained in:
parent
22b937cc1c
commit
e3d727cdb6
11 changed files with 162 additions and 117 deletions
|
@ -56,7 +56,7 @@ xmrig::OclThread::OclThread(const rapidjson::Value &value)
|
|||
}
|
||||
|
||||
m_index = Json::getUint(value, kIndex);
|
||||
m_worksize = std::max(std::min(Json::getUint(value, kWorksize), 128u), 1u);
|
||||
m_worksize = std::max(std::min(Json::getUint(value, kWorksize), 512u), 1u);
|
||||
m_unrollFactor = std::max(std::min(Json::getUint(value, kUnroll, m_unrollFactor), 128u), 1u);
|
||||
|
||||
setIntensity(Json::getUint(value, kIntensity));
|
||||
|
@ -151,7 +151,7 @@ rapidjson::Value xmrig::OclThread::toJSON(rapidjson::Document &doc) const
|
|||
out.AddMember(StringRef(kDatasetHost), isDatasetHost(), allocator);
|
||||
# endif
|
||||
}
|
||||
else if (!m_fields.test(ASTROBWT_FIELDS)) {
|
||||
else if (!m_fields.test(ASTROBWT_FIELDS) && !m_fields.test(KAWPOW_FIELDS)) {
|
||||
out.AddMember(StringRef(kUnroll), unrollFactor(), allocator);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue