WIP GPU integration
This commit is contained in:
parent
cbc56a3a64
commit
c91c7cd798
12 changed files with 432 additions and 110 deletions
|
@ -1,10 +1,4 @@
|
|||
/* XMRig
|
||||
* Copyright 2010 Jeff Garzik <jgarzik@pobox.com>
|
||||
* Copyright 2012-2014 pooler <pooler@litecoinpool.org>
|
||||
* Copyright 2014 Lucas Jones <https://github.com/lucasjones>
|
||||
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
|
||||
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
|
||||
* Copyright 2016-2017 XMRig <support@xmrig.com>
|
||||
/* XMRigCC
|
||||
* Copyright 2017- BenDr0id <ben@graef.in>
|
||||
*
|
||||
*
|
||||
|
@ -27,7 +21,9 @@
|
|||
|
||||
#include <string>
|
||||
#include <ctime>
|
||||
#include <list>
|
||||
#include <rapidjson/document.h>
|
||||
#include "GPUInfo.h"
|
||||
|
||||
class ClientStatus
|
||||
{
|
||||
|
@ -136,6 +132,10 @@ public:
|
|||
int getCpuL3() const;
|
||||
void setCpuL3(int cpuL3);
|
||||
|
||||
const std::list<GPUInfo> getGPUInfoList() const;
|
||||
void addGPUInfo(const GPUInfo gpuInfo);
|
||||
void clearGPUInfoList();
|
||||
|
||||
uint64_t getSharesGood() const;
|
||||
void setSharesGood(uint64_t sharesGood);
|
||||
|
||||
|
@ -157,7 +157,6 @@ public:
|
|||
rapidjson::Value toJson(rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>& allocator);
|
||||
bool parseFromJson(const rapidjson::Document& document);
|
||||
|
||||
|
||||
private:
|
||||
const char* status_str[3] = {
|
||||
"RUNNING",
|
||||
|
@ -196,6 +195,8 @@ private:
|
|||
int m_cpuL2;
|
||||
int m_cpuL3;
|
||||
|
||||
std::list<GPUInfo> m_gpuInfoList;
|
||||
|
||||
uint64_t m_sharesGood;
|
||||
uint64_t m_sharesTotal;
|
||||
uint64_t m_hashesTotal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue