1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-27 14:23:28 -05:00

Added platform option.

This commit is contained in:
XMRig
2019-08-19 22:35:58 +07:00
parent 476e5dcb18
commit 166a68244e
9 changed files with 194 additions and 26 deletions

View File

@@ -47,9 +47,11 @@ public:
static std::vector<OclPlatform> get();
static void print();
inline bool isValid() const { return m_id != nullptr; }
inline cl_platform_id id() const { return m_id; }
inline size_t index() const { return m_index; }
rapidjson::Value toJSON(rapidjson::Document &doc) const;
String extensions() const;
String name() const;
String profile() const;