Implemented NvmlLib.
This commit is contained in:
parent
175a7b06b7
commit
83f437f979
8 changed files with 203 additions and 12 deletions
|
@ -26,7 +26,8 @@
|
|||
#define XMRIG_NVMLLIB_H
|
||||
|
||||
|
||||
#include "base/tools/String.h"
|
||||
#include "backend/cuda/wrappers/CudaDevice.h"
|
||||
#include "backend/cuda/wrappers/NvmlHealth.h"
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
@ -39,6 +40,9 @@ public:
|
|||
static const char *lastError() noexcept;
|
||||
static void close();
|
||||
|
||||
static bool assign(std::vector<CudaDevice> &devices);
|
||||
static NvmlHealth health(nvmlDevice_t device);
|
||||
|
||||
static inline bool isInitialized() noexcept { return m_initialized; }
|
||||
static inline bool isReady() noexcept { return m_ready; }
|
||||
static inline const char *driverVersion() noexcept { return m_driverVersion; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue