Added OclBackend, OclConfig, OclLaunchData, OclThread and OclThreads stubs.

This commit is contained in:
XMRig 2019-08-13 19:47:22 +07:00
parent eda05edd6d
commit d5f57c35e2
17 changed files with 1010 additions and 5 deletions

View file

@ -39,6 +39,11 @@
#endif
#ifdef XMRIG_FEATURE_OPENCL
# include "backend/opencl/OclConfig.h"
#endif
namespace xmrig {
@ -50,16 +55,20 @@ class Config : public BaseConfig
public:
Config();
bool isShouldSave() const;
bool read(const IJsonReader &reader, const char *fileName) override;
void getJSON(rapidjson::Document &doc) const override;
inline bool isShouldSave() const { return (m_shouldSave || m_upgrade || m_cpu.isShouldSave()) && isAutoSave(); }
inline const CpuConfig &cpu() const { return m_cpu; }
# ifdef XMRIG_ALGO_RANDOMX
inline const RxConfig &rx() const { return m_rx; }
# endif
# ifdef XMRIG_FEATURE_OPENCL
inline const OclConfig &cl() const { return m_cl; }
# endif
private:
bool m_shouldSave = false;
CpuConfig m_cpu;
@ -67,6 +76,10 @@ private:
# ifdef XMRIG_ALGO_RANDOMX
RxConfig m_rx;
# endif
# ifdef XMRIG_FEATURE_OPENCL
OclConfig m_cl;
# endif
};