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

@ -123,7 +123,9 @@ rapidjson::Value xmrig::OclThread::toJSON(rapidjson::Document &doc) const
out.AddMember(StringRef(kIndex), index(), allocator);
out.AddMember(StringRef(kIntensity), intensity(), allocator);
out.AddMember(StringRef(kWorksize), worksize(), allocator);
if (!m_fields.test(ASTROBWT_FIELDS)) {
out.AddMember(StringRef(kWorksize), worksize(), allocator);
}
if (m_fields.test(STRIDED_INDEX_FIELD)) {
Value si(kArrayType);
@ -149,7 +151,7 @@ rapidjson::Value xmrig::OclThread::toJSON(rapidjson::Document &doc) const
out.AddMember(StringRef(kDatasetHost), isDatasetHost(), allocator);
# endif
}
else {
else if (!m_fields.test(ASTROBWT_FIELDS)) {
out.AddMember(StringRef(kUnroll), unrollFactor(), allocator);
}