1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-25 21:52:54 -05:00

Improved --print-platforms option.

This commit is contained in:
XMRig
2019-08-19 02:49:43 +07:00
parent d8d173db4d
commit 476e5dcb18
5 changed files with 83 additions and 38 deletions

View File

@@ -45,11 +45,16 @@ public:
OclPlatform(size_t index, cl_platform_id id) : m_id(id), m_index(index) {}
static std::vector<OclPlatform> get();
static void print();
inline cl_platform_id id() const { return m_id; }
inline size_t index() const { return m_index; }
String extensions() const;
String name() const;
String profile() const;
String vendor() const;
String version() const;
private:
cl_platform_id m_id = nullptr;