Added initial NVML stub.

This commit is contained in:
XMRig
2019-10-30 15:33:06 +07:00
parent a460578b5c
commit c99df6dbf4
10 changed files with 335 additions and 17 deletions

View File

@@ -50,6 +50,11 @@ public:
inline int32_t bfactor() const { return m_bfactor; }
inline int32_t bsleep() const { return m_bsleep; }
# ifdef XMRIG_FEATURE_NVML
inline bool isNvmlEnabled() const { return m_nvml; }
inline const String &nvmlLoader() const { return m_nvmlLoader; }
# endif
private:
void generate();
void setDevicesHint(const char *devicesHint);
@@ -67,6 +72,11 @@ private:
int32_t m_bfactor = 0;
int32_t m_bsleep = 0;
# endif
# ifdef XMRIG_FEATURE_NVML
bool m_nvml = true;
String m_nvmlLoader;
# endif
};