mirror of
https://github.com/xmrig/xmrig.git
synced 2026-01-31 09:22:59 -05:00
Print OpenCL platform and devices in summary.
This commit is contained in:
@@ -165,7 +165,7 @@ void xmrig::OclConfig::read(const rapidjson::Value &value)
|
||||
|
||||
setPlatform(Json::getValue(value, kPlatform));
|
||||
|
||||
if (!m_threads.read(value)) {
|
||||
if (isEnabled() && !m_threads.read(value)) {
|
||||
generate();
|
||||
}
|
||||
}
|
||||
@@ -180,9 +180,14 @@ void xmrig::OclConfig::read(const rapidjson::Value &value)
|
||||
|
||||
void xmrig::OclConfig::generate()
|
||||
{
|
||||
OclLib::init(loader());
|
||||
if (!OclLib::init(loader())) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto devices = platform().devices();
|
||||
if (devices.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_shouldSave = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user