Fixed wrong OpenCL platform on macOS.

This commit is contained in:
XMRig 2020-02-15 04:32:32 +07:00
parent 5e444553b1
commit 311d3e1c18
No known key found for this signature in database
GPG key ID: 446A53638BE94409
3 changed files with 29 additions and 8 deletions

View file

@ -58,16 +58,20 @@ public:
private:
void generate();
void setDevicesHint(const char *devicesHint);
void setPlatform(const rapidjson::Value &platform);
bool m_cache = true;
bool m_enabled = false;
bool m_shouldSave = false;
std::vector<uint32_t> m_devicesHint;
String m_loader;
String m_platformVendor;
Threads<OclThreads> m_threads;
# ifndef XMRIG_OS_APPLE
void setPlatform(const rapidjson::Value &platform);
String m_platformVendor;
uint32_t m_platformIndex = 0;
# endif
# ifdef XMRIG_FEATURE_ADL
bool m_adl = true;