Added command line option --opencl-devices (hint mode)
This commit is contained in:
parent
3ee3d13f0f
commit
d6f0555771
5 changed files with 69 additions and 2 deletions
|
@ -52,6 +52,10 @@ static const char* kDatasetHost = "dataset_host";
|
|||
|
||||
xmrig::OclThread::OclThread(const rapidjson::Value &value)
|
||||
{
|
||||
if (!value.IsObject()) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_index = Json::getUint(value, kIndex);
|
||||
m_worksize = std::max(std::min(Json::getUint(value, kWorksize), 128u), 1u);
|
||||
m_unrollFactor = std::max(std::min(Json::getUint(value, kUnroll, m_unrollFactor), 128u), 1u);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue