mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-26 06:00:00 -05:00
Implemented NvmlLib.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user